From 3848ce60ca8491a6e563a01d607377fcfc593b46 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 14:59:55 -0400 Subject: [PATCH] Add keybind to open presence (account) menu --- src/backend/user_files.py | 3 ++- src/gui/MainPane/AccountDelegate.qml | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/backend/user_files.py b/src/backend/user_files.py index 91bab62e..d770969a 100644 --- a/src/backend/user_files.py +++ b/src/backend/user_files.py @@ -298,7 +298,8 @@ class UISettings(JSONDataFile): "addNewChat": ["Alt+C"], "toggleFocusMainPane": ["Alt+F"], "clearRoomFilter": ["Alt+Shift+F"], - "toggleCollapseAccount": [ "Alt+O"], + "toggleCollapseAccount": ["Alt+O"], + "openPresenceMenu": ["Alt+P"], "goToLastPage": ["Ctrl+Tab"], "goToPreviousAccount": ["Alt+Shift+N"], diff --git a/src/gui/MainPane/AccountDelegate.qml b/src/gui/MainPane/AccountDelegate.qml index fce8ef5f..9dcb610c 100644 --- a/src/gui/MainPane/AccountDelegate.qml +++ b/src/gui/MainPane/AccountDelegate.qml @@ -211,4 +211,10 @@ HTile { sequences: window.settings.keys.toggleCollapseAccount onActivated: toggleCollapse() } + + HShortcut { + enabled: enableKeybinds + sequences: window.settings.keys.openPresenceMenu + onActivated: account.doRightClick(false) + } }