Alt+Shift+Up/Down to switch to previous/next unread room
This is the same key combination as commonly used by other chat clients such as Element, Slack and Discord. For consistency, also add the same Alt+Up/Down shortcut as used in thes other clients as aliases for switching rooms without considering the unread status.
This commit is contained in:
@@ -318,18 +318,32 @@ Kirigami.ApplicationWindow {
|
||||
id: roomList
|
||||
|
||||
Shortcut {
|
||||
sequences: ["Ctrl+PgUp", "Ctrl+Backtab"]
|
||||
sequences: ["Ctrl+PgUp", "Ctrl+Backtab", "Alt+Up"]
|
||||
onActivated: {
|
||||
roomList.goToPreviousRoom();
|
||||
}
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequences: ["Ctrl+PgDown", "Ctrl+Tab"]
|
||||
sequences: ["Ctrl+PgDown", "Ctrl+Tab", "Alt+Down"]
|
||||
onActivated: {
|
||||
roomList.goToNextRoom();
|
||||
}
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequence: "Alt+Shift+Up"
|
||||
onActivated: {
|
||||
roomList.goToPreviousUnreadRoom();
|
||||
}
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequence: "Alt+Shift+Down"
|
||||
onActivated: {
|
||||
roomList.goToNextUnreadRoom();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user