Add keybind to hide room pane (default Ctrl+Alt+R)

This commit is contained in:
miruka 2020-07-14 16:51:01 -04:00
parent e00832eea6
commit d51c0e3e5d
2 changed files with 10 additions and 4 deletions

View File

@ -286,10 +286,11 @@ class UISettings(JSONDataFile):
"toggleDebugConsole": ["Alt+Shift+C", "F1"], "toggleDebugConsole": ["Alt+Shift+C", "F1"],
"reloadConfig": ["Alt+Shift+R"], "reloadConfig": ["Alt+Shift+R"],
"zoomIn": ["Ctrl++"], "zoomIn": ["Ctrl++"],
"zoomOut": ["Ctrl+-"], "zoomOut": ["Ctrl+-"],
"zoomReset": ["Ctrl+="], "zoomReset": ["Ctrl+="],
"toggleCompactMode": ["Ctrl+Alt+C"], "toggleCompactMode": ["Ctrl+Alt+C"],
"toggleHideRoomPane": ["Ctrl+Alt+R"],
"scrollUp": ["Alt+Up", "Alt+K"], "scrollUp": ["Alt+Up", "Alt+K"],
"scrollDown": ["Alt+Down", "Alt+J"], "scrollDown": ["Alt+Down", "Alt+J"],

View File

@ -103,4 +103,9 @@ MultiviewPane {
sequences: window.settings.keys.toggleFocusRoomPane sequences: window.settings.keys.toggleFocusRoomPane
onActivated: roomPane.toggleFocus() onActivated: roomPane.toggleFocus()
} }
HShortcut {
sequences: window.settings.keys.toggleHideRoomPane
onActivated: roomPane.forceCollapse = ! roomPane.forceCollapse
}
} }