Add shortcuts
This commit is contained in:
3 files changed
+35
-2
No files matched your search
+12
-1
@@ -19,6 +19,7 @@ ApplicationWindow {
|
||||
onSidebarOpenChanged: appState.sidebarOpen = sidebarOpen
|
||||
property string currentPage: "starter"
|
||||
property bool _restoringState: false
|
||||
property bool barsVisible: true
|
||||
|
||||
onCurrentPageChanged: appState.lastPage = currentPage
|
||||
|
||||
@@ -84,6 +85,7 @@ ApplicationWindow {
|
||||
width: parent.width
|
||||
sidebarOpen: window.sidebarOpen
|
||||
currentPage: window.currentPage
|
||||
barsVisible: window.currentPage !== "reader" || window.barsVisible
|
||||
onMenuClicked: window.sidebarOpen = true
|
||||
}
|
||||
|
||||
@@ -116,7 +118,7 @@ ApplicationWindow {
|
||||
Loader {
|
||||
id: footerLoader
|
||||
width: parent.width
|
||||
active: window.currentPage === "reader"
|
||||
active: window.currentPage === "reader" && window.barsVisible
|
||||
sourceComponent: Footer {}
|
||||
}
|
||||
}
|
||||
@@ -127,6 +129,15 @@ ApplicationWindow {
|
||||
z: 3000
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequence: "F"
|
||||
onActivated: window.visibility = (window.visibility === Window.FullScreen) ? Window.Windowed : Window.FullScreen
|
||||
}
|
||||
Shortcut {
|
||||
sequence: "F11"
|
||||
onActivated: window.visibility = (window.visibility === Window.FullScreen) ? Window.Windowed : Window.FullScreen
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: bookController
|
||||
function onBookReady() {
|
||||
|
||||
Reference in new issue
Block a user