Skip to content

Commit

Permalink
Support keybindings to shifted XF86keysyms like XF86AudioPause for is…
Browse files Browse the repository at this point in the history
…sue #781.
  • Loading branch information
gijsbers committed Jul 25, 2024
1 parent 8f291a1 commit 7aedab7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/yxapp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,9 @@ bool YXApplication::parseKey(const char* arg, KeySym* key, unsigned* mod) {

void YXApplication::unshift(KeySym* ksym, unsigned* mod) {
const unsigned key = unsigned(*ksym);
if ((' ' < key && key < 'a') || ('z' < key && key <= 0xff)) {
if ((' ' < key && key < 'a') || ('z' < key && key <= 0xFF) ||
(0x1008FE01U <= key && key <= 0x1008FFFFU)) /*XF86keysyms*/
{
if (fKeycodeMap == nullptr) {
XDisplayKeycodes(xapp->display(), &fKeycodeMin, &fKeycodeMax);
fKeycodeMap = XGetKeyboardMapping(xapp->display(), fKeycodeMin,
Expand Down

0 comments on commit 7aedab7

Please sign in to comment.