Browse Source

Remove escape key to exit fullscreen. Add F11 as fullscreen button.

Related to plexinc/plex-media-player-private#514
Tobias Hieta 8 years ago
parent
commit
7a9f4992fa
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/ui/webview.qml

+ 4 - 5
src/ui/webview.qml

@@ -21,7 +21,6 @@ KonvergoWindow
 
   function actionEnable(enable)
   {
-    action_escape.enabled = enable
     action_switchmode.enabled = enable
     action_copy.enabled = enable
     action_cut.enabled = enable
@@ -29,16 +28,16 @@ KonvergoWindow
     action_undo.enabled = enable
     action_redo.enabled = enable
     action_selectall.enabled = enable
+    action_fullscreen.enabled = enable
   }
 
   Action
   {
-    id: action_escape
-    shortcut: "Escape"
+    id: action_fullscreen
+    shortcut: "F11"
     onTriggered:
     {
-      if (mainWindow.fullScreen)
-        mainWindow.setFullScreen(false)
+      mainWindow.toggleFullscreen()
     }
   }