[vlc-commits] [Git][videolan/vlc][master] qml: support mouse back button
    Rémi Denis-Courmont (@Courmisch) 
    gitlab at videolan.org
       
    Fri Feb  4 13:28:48 UTC 2022
    
    
  
Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
c8e64fe7 by Prince Gupta at 2022-02-04T13:01:22+00:00
qml: support mouse back button
- - - - -
1 changed file:
- modules/gui/qt/maininterface/qml/MainInterface.qml
Changes:
=====================================
modules/gui/qt/maininterface/qml/MainInterface.qml
=====================================
@@ -171,6 +171,7 @@ Rectangle {
             item.bgContent = root
         }
     }
+
     Connections {
         target: dialogsLoader.item
         onRestoreFocus: {
@@ -178,6 +179,13 @@ Rectangle {
         }
     }
 
+    MouseArea {
+        /// handles mouse navigation buttons
+        anchors.fill: parent
+        acceptedButtons: Qt.BackButton
+        onClicked: History.previous()
+    }
+
     Loader {
         active: (MainCtx.clientSideDecoration
                  &&
@@ -186,4 +194,5 @@ Rectangle {
 
         source: "qrc:///widgets/CSDMouseStealer.qml"
     }
+
 }
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c8e64fe723daa8bccd0421599f844abd53623ddd
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c8e64fe723daa8bccd0421599f844abd53623ddd
You're receiving this email because of your account on code.videolan.org.
    
    
More information about the vlc-commits
mailing list