qt: Map F13/F14/F15 using Apple equivalency again for Apple keyboards on Linux
This commit is contained in:
@@ -102,6 +102,7 @@ static std::unordered_map<std::string, uint16_t> xkb_keycodes = {
|
||||
|
||||
{"NMLK", 0x45},
|
||||
{"SCLK", 0x46},
|
||||
{"FK14", 0x46}, /* F14 => Scroll Lock (for Apple keyboards) */
|
||||
{"KP7", 0x47},
|
||||
{"KP8", 0x48},
|
||||
{"KP9", 0x49},
|
||||
@@ -119,9 +120,9 @@ static std::unordered_map<std::string, uint16_t> xkb_keycodes = {
|
||||
{"LSGT", 0x56},
|
||||
{"FK11", 0x57},
|
||||
{"FK12", 0x58},
|
||||
{"FK13", 0x5d},
|
||||
{"FK14", 0x5e},
|
||||
{"FK15", 0x5f},
|
||||
{"FK16", 0x5d}, /* F16 => F13 */
|
||||
{"FK17", 0x5e}, /* F17 => F14 */
|
||||
{"FK18", 0x5f}, /* F18 => F15 */
|
||||
|
||||
/* Japanese keys. */
|
||||
{"JPCM", 0x5c}, /* Num, */
|
||||
@@ -146,8 +147,10 @@ static std::unordered_map<std::string, uint16_t> xkb_keycodes = {
|
||||
{"KPDV", 0x135},
|
||||
{"PRSC", 0x137},
|
||||
{"SYRQ", 0x137},
|
||||
{"FK13", 0x137}, /* F13 => SysRq (for Apple keyboards) */
|
||||
{"RALT", 0x138},
|
||||
{"PAUS", 0x145},
|
||||
{"FK15", 0x145}, /* F15 => Pause (for Apple keyboards) */
|
||||
{"BRK", 0x145},
|
||||
{"HOME", 0x147},
|
||||
{"UP", 0x148},
|
||||
|
||||
Reference in New Issue
Block a user