浏览代码

Disable built-in media keys for Windows.

Ian Walton 3 年之前
父节点
当前提交
d5b520b527
共有 1 个文件被更改,包括 5 次插入0 次删除
  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;