Add keybind to clear room filter

This commit is contained in:
miruka 2019-08-19 14:05:59 -04:00
parent af14038909
commit 314b2c30ad
2 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,7 @@ class UISettings(JSONConfigFile):
"scrollUp": ["Alt+Up", "Alt+K"], "scrollUp": ["Alt+Up", "Alt+K"],
"scrollDown": ["Alt+Down", "Alt+J"], "scrollDown": ["Alt+Down", "Alt+J"],
"focusSidePane": ["Alt+S", "Ctrl+S"], "focusSidePane": ["Alt+S", "Ctrl+S"],
"clearRoomFilter": ["Alt+Shift+S", "Ctrl+Shift+S"],
"goToPreviousRoom": ["Alt+Shift+Up", "Alt+Shift+K"], "goToPreviousRoom": ["Alt+Shift+Up", "Alt+Shift+K"],
"goToNextRoom": ["Alt+Shift+Down", "Alt+Shift+J"], "goToNextRoom": ["Alt+Shift+Down", "Alt+Shift+J"],
"startDebugger": ["Alt+Shift+D"], "startDebugger": ["Alt+Shift+D"],

View File

@ -41,6 +41,11 @@ Item {
onActivated: mainUI.sidePane.forceActiveFocus() onActivated: mainUI.sidePane.forceActiveFocus()
} }
Shortcut {
sequences: settings.keys ? settings.keys.clearRoomFilter : []
onActivated: mainUI.sidePane.paneToolBar.roomFilter = ""
}
Shortcut { Shortcut {
sequences: settings.keys ? settings.keys.goToPreviousRoom : [] sequences: settings.keys ? settings.keys.goToPreviousRoom : []
onActivated: mainUI.sidePane.accountRoomList.previous() onActivated: mainUI.sidePane.accountRoomList.previous()