From a9a99e4a65504b54a9a1b67ab8c8e1d37b23fa38 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 8 Nov 2019 16:01:09 -0400 Subject: [PATCH] Add ctrl+tab keybind to go to last page --- src/python/config_files.py | 1 + src/qml/Shortcuts.qml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/python/config_files.py b/src/python/config_files.py index 23b0dc06..7dba7316 100644 --- a/src/python/config_files.py +++ b/src/python/config_files.py @@ -134,6 +134,7 @@ class UISettings(JSONConfigFile): "clearRoomFilter": ["Alt+Shift+S", "Ctrl+Shift+S"], "addNewAccount": ["Alt+N"], + "goToLastPage": ["Ctrl+Tab"], "goToPreviousRoom": ["Alt+Shift+Up", "Alt+Shift+K"], "goToNextRoom": ["Alt+Shift+Down", "Alt+Shift+J"], "toggleCollapseAccount": [ diff --git a/src/qml/Shortcuts.qml b/src/qml/Shortcuts.qml index da153594..d20d1df3 100644 --- a/src/qml/Shortcuts.qml +++ b/src/qml/Shortcuts.qml @@ -25,6 +25,13 @@ HShortcutHandler { onPressed: py.loadSettings(() => { mainUI.pressAnimation.start() }) } + // Pages + + HShortcut { + sequences: settings.keys.goToLastPage + onPressed: mainUI.pageLoader.showPrevious() + } + // Page scrolling HShortcut {