[vlc-commits] [Git][videolan/vlc][master] qml: use `sequences` instead of `sequence` for standard keys in `GlobalShortcuts.qml`

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Jan 27 08:09:40 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
6a711f52 by Fatih Uzunoglu at 2025-01-27T07:52:47+00:00
qml: use `sequences` instead of `sequence` for standard keys in `GlobalShortcuts.qml`

As Qt docs state, a standard key may be multiple shortcuts depending on the platform.

- - - - -


1 changed file:

- modules/gui/qt/menus/qml/GlobalShortcuts.qml


Changes:

=====================================
modules/gui/qt/menus/qml/GlobalShortcuts.qml
=====================================
@@ -28,7 +28,7 @@ Item {
     ShortcutExt{ sequence:"Ctrl+D"; onActivated: DialogsProvider.openDiscDialog(); }
     ShortcutExt{ sequence:"Ctrl+N"; onActivated: DialogsProvider.openNetDialog(); }
     ShortcutExt{ sequence:"Ctrl+C"; onActivated: DialogsProvider.openCaptureDialog(); }
-    ShortcutExt{ sequence: StandardKey.Paste; onActivated: MainCtx.pasteFromClipboard(); }
+    ShortcutExt{ sequences: [StandardKey.Paste]; onActivated: MainCtx.pasteFromClipboard(); }
     ShortcutExt{ context: Qt.WindowShortcut; sequence:"Ctrl+Y"; onActivated: DialogsProvider.savePlayingToPlaylist(); }
     ShortcutExt{ sequence:"Ctrl+R"; onActivated: DialogsProvider.openAndTranscodingDialogs(); }
     ShortcutExt{ sequence:"Ctrl+S"; onActivated: DialogsProvider.openAndStreamingDialogs(); }
@@ -49,8 +49,8 @@ Item {
     ShortcutExt{ sequence:"F11"; onActivated: MainCtx.toggleInterfaceFullScreen() }
     ShortcutExt{ sequence:"Ctrl+H"; onActivated: MainCtx.minimalView = !MainCtx.minimalView; }
 
-    ShortcutExt{ sequence: StandardKey.ZoomIn; onActivated: MainCtx.incrementIntfUserScaleFactor(true) }
-    ShortcutExt{ sequence: StandardKey.ZoomOut; onActivated: MainCtx.incrementIntfUserScaleFactor(false) }
+    ShortcutExt{ sequences: [StandardKey.ZoomIn]; onActivated: MainCtx.incrementIntfUserScaleFactor(true) }
+    ShortcutExt{ sequences: [StandardKey.ZoomOut]; onActivated: MainCtx.incrementIntfUserScaleFactor(false) }
 
     Loader {
         active: MainCtx.mediaLibraryAvailable



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6a711f527956ba8f56157aeadd1bcab976d3751d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6a711f527956ba8f56157aeadd1bcab976d3751d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list