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:
Kevin Wolf
2023-02-22 15:47:33 +01:00
committed by Tobias Fella
parent 12afa43d23
commit c0c86c67b6
2 changed files with 38 additions and 6 deletions

View File

@@ -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();
}
}
}
}