소스 검색

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;