From d51c0e3e5d2e05804bb0d0cefeef37ba35fad92c Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 14 Jul 2020 16:51:01 -0400 Subject: [PATCH] Add keybind to hide room pane (default Ctrl+Alt+R) --- src/backend/user_files.py | 9 +++++---- src/gui/Pages/Chat/RoomPane/RoomPane.qml | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/backend/user_files.py b/src/backend/user_files.py index 411fa769..8145ec30 100644 --- a/src/backend/user_files.py +++ b/src/backend/user_files.py @@ -286,10 +286,11 @@ class UISettings(JSONDataFile): "toggleDebugConsole": ["Alt+Shift+C", "F1"], "reloadConfig": ["Alt+Shift+R"], - "zoomIn": ["Ctrl++"], - "zoomOut": ["Ctrl+-"], - "zoomReset": ["Ctrl+="], - "toggleCompactMode": ["Ctrl+Alt+C"], + "zoomIn": ["Ctrl++"], + "zoomOut": ["Ctrl+-"], + "zoomReset": ["Ctrl+="], + "toggleCompactMode": ["Ctrl+Alt+C"], + "toggleHideRoomPane": ["Ctrl+Alt+R"], "scrollUp": ["Alt+Up", "Alt+K"], "scrollDown": ["Alt+Down", "Alt+J"], diff --git a/src/gui/Pages/Chat/RoomPane/RoomPane.qml b/src/gui/Pages/Chat/RoomPane/RoomPane.qml index 09450333..c15d81c6 100644 --- a/src/gui/Pages/Chat/RoomPane/RoomPane.qml +++ b/src/gui/Pages/Chat/RoomPane/RoomPane.qml @@ -103,4 +103,9 @@ MultiviewPane { sequences: window.settings.keys.toggleFocusRoomPane onActivated: roomPane.toggleFocus() } + + HShortcut { + sequences: window.settings.keys.toggleHideRoomPane + onActivated: roomPane.forceCollapse = ! roomPane.forceCollapse + } }