[multimedia/dragon] src/qml: Implemented Keyboard shortcut (Arrow Up/Down) for volumes.

Redha Zidan <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 2699f6e8577322db5c5eedd6bf5fbc6b7db18291 by Redha Zidan.
Committed on 18/08/2026 at 09:23.
Pushed by sitter into branch 'master'.

Implemented Keyboard shortcut (Arrow Up/Down) for volumes.

M  +12   -0    src/qml/PlayerPage.qml

https://invent.kde.org/multimedia/dragon/-/commit/2699f6e8577322db5c5eedd6bf5fbc6b7db18291

diff --git a/src/qml/PlayerPage.qml b/src/qml/PlayerPage.qml
index 4eb9507d..029d4660 100644
--- a/src/qml/PlayerPage.qml
+++ b/src/qml/PlayerPage.qml
@@ -451,4 +451,16 @@ Please <link url="%1">contact the %2 developers</link> about this issue, or to f
         sequence: "Ctrl+Alt+Right"
         onActivated: videoPage.seek(toolbar.seekSlider.value + (5 * 60000), true)
     }
+
+    Shortcut {
+        context: Qt.ApplicationShortcut
+        sequence: "Up"
+        onActivated: player.audioOutput.volume = Math.min(1.0, player.audioOutput.volume + 0.1)
+    }
+
+    Shortcut {
+        context: Qt.ApplicationShortcut
+        sequence: "Down"
+        onActivated: player.audioOutput.volume = Math.max(0.0, player.audioOutput.volume - 0.1)
+    }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.