Browse Source

Disable built-in media keys for Windows.

Ian Walton 3 năm trước cách đây
mục cha
commit
d5b520b527
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/ui/EventFilter.cpp

+ 5 - 0
src/ui/EventFilter.cpp

@@ -12,6 +12,9 @@
 #include <QKeyEvent>
 #include <QObject>
 
+#ifdef Q_OS_WIN
+static QStringList desktopWhiteListedKeys = { "Back"};
+#else
 static QStringList desktopWhiteListedKeys = { "Media Play",
                                               "Media Pause",
                                               "Media Stop",
@@ -20,6 +23,8 @@ static QStringList desktopWhiteListedKeys = { "Media Play",
                                               "Media Rewind",
                                               "Media FastForward",
                                               "Back"};
+#endif
+
 // These just happen to be mostly the same.
 static QStringList win32AppcommandBlackListedKeys = desktopWhiteListedKeys;