From e3103144a250bc82896bff0bfcbaf93f0f9b3edd Mon Sep 17 00:00:00 2001 From: Maze Date: Fri, 14 Jan 2022 21:59:31 +0100 Subject: [PATCH] Change default keybindings for Moment By Linux convention for GUI software, Ctrl+Q is quit. By general chat app convention, Ctrl+K is filter. Some keybindings have been changed to make space for these: Reply is now Ctrl+R Remove is now Ctrl+Shift+R "Previous message" is now Ctrl+I I did not want to alter the defaults more than this. But ideally, you would want "Previous message" and "Next message" adjacent, so it makes sense to swap Ctrl+U and Ctrl+J as well. --- src/config/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/config/settings.py b/src/config/settings.py index 1d622ecb..5437ae86 100644 --- a/src/config/settings.py +++ b/src/config/settings.py @@ -289,8 +289,8 @@ class Keys: # From any terminal, run `socat readline tcp:127.0.0.1:4444` to connect. python_remote_debugger = ["Alt+F1"] - # Quit Mirage - quit = [] + # Quit Moment + quit = ["Ctrl+Q"] class Scrolling: # Keys.Scrolling # Pages and chat timeline scrolling @@ -350,7 +350,7 @@ class Keys: # When focusing the field, use Tab/Shift+Tab or the arrows to navigate # the list, Enter to switch to focused account/room, Escape to cancel, # Menu to open the context menu. - focus_filter = ["Alt+F"] + focus_filter = ["Alt+F","Ctrl+K"] clear_filter = ["Alt+Shift+F"] # Switch to the previous/next room in the list. @@ -432,7 +432,7 @@ class Keys: # Focus the previous/next message in the timeline. # Keybinds defined below in this section affect the focused message. # The Menu key can open the context menu for a focused message. - previous = ["Ctrl+Up", "Ctrl+K"] + previous = ["Ctrl+Up", "Ctrl+I"] next = ["Ctrl+Down", "Ctrl+J"] # Select the currently focused message, same as clicking on it. @@ -462,12 +462,12 @@ class Keys: # Remove the selected messages if any, else the focused message if any, # else the last message you posted. - remove = ["Ctrl+R", "Alt+Del"] + remove = ["Ctrl+Shift+R", "Alt+Del"] # Reply/cancel reply to the focused message if any, # else the last message posted by someone else. # Replying can also be cancelled by pressing Escape. - reply = ["Ctrl+Q"] + reply = ["Ctrl+R"] # Open the QML developer console for the focused message if any, # and display the event source.