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.
This commit is contained in:
Maze 2022-01-14 21:59:31 +01:00
parent 8e78e662e4
commit e3103144a2

View File

@ -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.