… | |
… | |
459 | for (; index < end; ++index) |
459 | for (; index < end; ++index) |
460 | { |
460 | { |
461 | keysym_t *key = keymap [index]; |
461 | keysym_t *key = keymap [index]; |
462 | |
462 | |
463 | if (key->keysym <= keysym && keysym < key->keysym + key->range |
463 | if (key->keysym <= keysym && keysym < key->keysym + key->range |
|
|
464 | #if 0 // disabled because the custom ekymap does not know the builtin keymap |
464 | // match only the specified bits in state and ignore others |
465 | // match only the specified bits in state and ignore others |
465 | && (key->state & state) == key->state) |
466 | && (key->state & state) == key->state |
|
|
467 | #else // re-enable this part once the builtin keymap is handled here, too |
|
|
468 | && key->state == state |
|
|
469 | #endif |
|
|
470 | ) |
466 | return index; |
471 | return index; |
467 | } |
472 | } |
468 | |
473 | |
469 | return -1; |
474 | return -1; |
470 | } |
475 | } |