Android Mute and FastForward keys mapped wrong
KEYCODE_MEDIA_FAST_FORWARD is mapped to Qt::Key_Forward, which undoes Back. I believe the best match in Qt would be Qt::Key_AudioForward which is also mapped by XCB from XF86XK_AudioForward /* fast-forward audio track */ KEYCODE_MUTE is mapped to Qt::Key_Volume_Mute, but the mute button is for muting the microphone, the volume mute is called KEYCODE_VOLUME_MUTE. Change-Id: Id0b78c9bde78faef1f5d31019693e6c466941d70 Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
parent
d135a311a3
commit
a5ecb0bcfd
@ -980,6 +980,8 @@ public:
|
||||
Key_TouchpadOn = 0x01000111,
|
||||
Key_TouchpadOff = 0x01000112,
|
||||
|
||||
Key_MicMute = 0x01000113,
|
||||
|
||||
Key_MediaLast = 0x0100ffff,
|
||||
|
||||
// Keypad navigation keys
|
||||
|
@ -1621,6 +1621,7 @@
|
||||
\value Key_TouchpadToggle
|
||||
\value Key_TouchpadOn
|
||||
\value Key_TouchpadOff
|
||||
\value Key_MicMute
|
||||
\value Key_MediaLast
|
||||
\value Key_unknown
|
||||
|
||||
|
@ -333,7 +333,7 @@ namespace QtAndroidInput
|
||||
return Qt::Key_BracketLeft;
|
||||
|
||||
case 0x0000005a: // KEYCODE_MEDIA_FAST_FORWARD
|
||||
return Qt::Key_Forward;
|
||||
return Qt::Key_AudioForward;
|
||||
|
||||
case 0x00000057:
|
||||
return Qt::Key_MediaNext;
|
||||
@ -344,7 +344,7 @@ namespace QtAndroidInput
|
||||
case 0x00000058:
|
||||
return Qt::Key_MediaPrevious;
|
||||
|
||||
case 0x00000059:
|
||||
case 0x00000059: // KEYCODE_MEDIA_REWIND
|
||||
return Qt::Key_AudioRewind;
|
||||
|
||||
case 0x00000056:
|
||||
@ -356,8 +356,8 @@ namespace QtAndroidInput
|
||||
case 0x00000045:
|
||||
return Qt::Key_Minus;
|
||||
|
||||
case 0x0000005b:
|
||||
return Qt::Key_VolumeMute;
|
||||
case 0x0000005b: // KEYCODE_MUTE
|
||||
return Qt::Key_MicMute;
|
||||
|
||||
case 0x0000004e:
|
||||
return Qt::Key_NumLock;
|
||||
@ -405,6 +405,9 @@ namespace QtAndroidInput
|
||||
case 0x00000019:
|
||||
return Qt::Key_VolumeDown;
|
||||
|
||||
case 0x000000a4: // KEYCODE_VOLUME_MUTE
|
||||
return Qt::Key_VolumeMute;
|
||||
|
||||
case 0x00000018:
|
||||
return Qt::Key_VolumeUp;
|
||||
|
||||
|
@ -248,6 +248,7 @@
|
||||
#define XF86XK_TouchpadToggle 0x1008FFA9
|
||||
#define XF86XK_TouchpadOn 0x1008FFB0
|
||||
#define XF86XK_TouchpadOff 0x1008FFB1
|
||||
#define XF86XK_AudioMicMute 0x1008FFB2
|
||||
|
||||
|
||||
// end of XF86keysyms.h
|
||||
@ -543,6 +544,7 @@ static const unsigned int KeyTbl[] = {
|
||||
XF86XK_TouchpadToggle, Qt::Key_TouchpadToggle,
|
||||
XF86XK_TouchpadOn, Qt::Key_TouchpadOn,
|
||||
XF86XK_TouchpadOff, Qt::Key_TouchpadOff,
|
||||
XF86XK_AudioMicMute, Qt::Key_MicMute,
|
||||
XF86XK_Launch0, Qt::Key_Launch2, // ### Qt 6: remap properly
|
||||
XF86XK_Launch1, Qt::Key_Launch3,
|
||||
XF86XK_Launch2, Qt::Key_Launch4,
|
||||
|
Loading…
Reference in New Issue
Block a user