summaryrefslogtreecommitdiff
path: root/src/desktop/qml/PageWidget.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/qml/PageWidget.qml')
-rw-r--r--src/desktop/qml/PageWidget.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/desktop/qml/PageWidget.qml b/src/desktop/qml/PageWidget.qml
index 212691f..756d9b4 100644
--- a/src/desktop/qml/PageWidget.qml
+++ b/src/desktop/qml/PageWidget.qml
@@ -72,6 +72,9 @@ Item {
onTitleChanged: { root.title = title }
+
+ experimental.preferences.fullScreenEnabled: true
+
experimental.onDownloadRequested: {
downloadItem.destinationPath = BrowserWindow.decideDownloadPath(downloadItem.suggestedFilename)
downloadItem.start()
@@ -86,6 +89,14 @@ Item {
}
request.action = WebView.AcceptRequest
}
+
+ experimental.onEnterFullScreenRequested : {
+ toggleFullScreen();
+ }
+
+ experimental.onExitFullScreenRequested : {
+ toggleFullScreen();
+ }
}
function loadUrl(url)