612 |
tr = *ptr; |
tr = *ptr; |
613 |
if (tr.seq_keysym == 0) /* Normal scancode translation */ |
if (tr.seq_keysym == 0) /* Normal scancode translation */ |
614 |
{ |
{ |
615 |
if (tr.modifiers & MapInhibitMask) |
if (MASK_HAS_BITS(tr.modifiers, MapInhibitMask)) |
616 |
{ |
{ |
617 |
DEBUG_KBD(("Inhibiting key\n")); |
DEBUG_KBD(("Inhibiting key\n")); |
618 |
tr.scancode = 0; |
tr.scancode = 0; |
619 |
return tr; |
return tr; |
620 |
} |
} |
621 |
|
|
622 |
if (tr.modifiers & MapLocalStateMask) |
if (MASK_HAS_BITS(tr.modifiers, MapLocalStateMask)) |
623 |
{ |
{ |
624 |
/* The modifiers to send for this key should be obtained |
/* The modifiers to send for this key should be obtained |
625 |
from the local state. Currently, only shift is implemented. */ |
from the local state. Currently, only shift is implemented. */ |
626 |
if (state & ShiftMask) |
if (MASK_HAS_BITS(state, ShiftMask)) |
627 |
{ |
{ |
628 |
tr.modifiers = MapLeftShiftMask; |
tr.modifiers = MapLeftShiftMask; |
629 |
} |
} |
661 |
/* The modifiers to send for this key should be |
/* The modifiers to send for this key should be |
662 |
obtained from the local state. Currently, only |
obtained from the local state. Currently, only |
663 |
shift is implemented. */ |
shift is implemented. */ |
664 |
if (state & ShiftMask) |
if (MASK_HAS_BITS(state, ShiftMask)) |
665 |
{ |
{ |
666 |
tr.modifiers = MapLeftShiftMask; |
tr.modifiers = MapLeftShiftMask; |
667 |
} |
} |