Ver código fonte

webview.qml: move fullscreen shortcuts to common location

Just a cosmetic change. I find it less confusing to have all fullscreen
toggling key bindings together.
Vincent Lang 8 anos atrás
pai
commit
3d2fe19a78
1 arquivos alterados com 23 adições e 24 exclusões
  1. 23 24
      src/ui/webview.qml

+ 23 - 24
src/ui/webview.qml

@@ -29,6 +29,29 @@ KonvergoWindow
     onTriggered: mainWindow.toggleFullscreen()
   }
 
+  Action
+  {
+    enabled: mainWindow.webDesktopMode
+    shortcut:
+    {
+      if (components.system.isMacos) return "Ctrl+Meta+F"
+      return "F11"
+    }
+    onTriggered: mainWindow.toggleFullscreenNoSwitch()
+  }
+
+  Action
+  {
+    shortcut: "Alt+Return"
+    enabled:
+    {
+      if (mainWindow.webDesktopMode && components.system.isWindows)
+        return true;
+      return false;
+    }
+    onTriggered: mainWindow.toggleFullscreen()
+  }
+
   Action
   {
     enabled: mainWindow.webDesktopMode
@@ -60,30 +83,6 @@ KonvergoWindow
     onTriggered: mainWindow.toggleDebug()
   }
 
-  Action
-  {
-    shortcut: "Alt+Return"
-    enabled:
-    {
-      if (mainWindow.webDesktopMode && components.system.isWindows)
-        return true;
-      return false;
-    }
-    onTriggered: mainWindow.toggleFullscreen()
-  }
-
-  Action
-  {
-    enabled: mainWindow.webDesktopMode
-    shortcut:
-    {
-      if (components.system.isMacos)
-        return "Ctrl+Meta+F"
-      return "F11"
-    }
-    onTriggered: mainWindow.toggleFullscreenNoSwitch()
-  }
-
   Action
   {
     shortcut: StandardKey.Copy