From d17e11af70a69a578ba38d57b8eda5473b3377f5 Mon Sep 17 00:00:00 2001 From: fangyefeng <1250890838@qq.com> Date: Tue, 16 Apr 2024 21:15:07 +0800 Subject: [PATCH] Disable shortcut keys for switching pages on the login page --- src/presentation/desktop/sidebar/MSidebar.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/presentation/desktop/sidebar/MSidebar.qml b/src/presentation/desktop/sidebar/MSidebar.qml index efda8572b..1cc24fb24 100644 --- a/src/presentation/desktop/sidebar/MSidebar.qml +++ b/src/presentation/desktop/sidebar/MSidebar.qml @@ -28,22 +28,27 @@ Item { Shortcut { sequence: "Ctrl+1" onActivated: loadPage(freeBooksPage, root.freeBooksItem) + enabled: root.visible } Shortcut { sequence: "Ctrl+2" onActivated: loadPage(homePage, root.homeItem) + enabled: root.visible } Shortcut { sequence: "Ctrl+3" onActivated: loadPage(statisticsPage, root.statisticsItem) + enabled: root.visible } Shortcut { sequence: "Ctrl+4" onActivated: loadPage(toolsPage, root.toolsItem) + enabled: root.visible } Shortcut { sequence: "Ctrl+5" onActivated: loadPage(settings, root.settingsItem) + enabled: root.visible } Pane {