Skip to content

Commit

Permalink
Disable shortcut keys for switching pages on the login page
Browse files Browse the repository at this point in the history
  • Loading branch information
1250890838 authored and DavidLazarescu committed Jul 4, 2024
1 parent af78de1 commit d17e11a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/presentation/desktop/sidebar/MSidebar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d17e11a

Please sign in to comment.