浏览代码

Add back key to blacklisted media keys, fixes #696

When using MCE remote, the "back" key will fire an media Back Key as well in the same way media Keys do.
This patch allows to filter the second event which has a native virtual key set to 166.

Tested with public testing build (see associated GHI).
Lionel CHAZALLON 7 年之前
父节点
当前提交
f8c4bf3321
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/ui/EventFilter.cpp

+ 2 - 1
src/ui/EventFilter.cpp

@@ -17,7 +17,8 @@ static QStringList desktopWhiteListedKeys = { "Media Play",
                                               "Media Next",
                                               "Media Previous",
                                               "Media Rewind",
-                                              "Media FastForward" };
+                                              "Media FastForward",
+                                              "Back"};
 // These just happen to be mostly the same.
 static QStringList win32AppcommandBlackListedKeys = desktopWhiteListedKeys;