206 |
{ |
{ |
207 |
fclose(fp); |
fclose(fp); |
208 |
STRNCPY(g_keymapname, str, sizeof(g_keymapname)); |
STRNCPY(g_keymapname, str, sizeof(g_keymapname)); |
209 |
|
xfree(str); |
210 |
return True; |
return True; |
211 |
} |
} |
212 |
|
|
213 |
|
xfree(str); |
214 |
return False; |
return False; |
215 |
} |
} |
216 |
|
|
614 |
tr = *ptr; |
tr = *ptr; |
615 |
if (tr.seq_keysym == 0) /* Normal scancode translation */ |
if (tr.seq_keysym == 0) /* Normal scancode translation */ |
616 |
{ |
{ |
617 |
if (tr.modifiers & MapInhibitMask) |
if (MASK_HAS_BITS(tr.modifiers, MapInhibitMask)) |
618 |
{ |
{ |
619 |
DEBUG_KBD(("Inhibiting key\n")); |
DEBUG_KBD(("Inhibiting key\n")); |
620 |
tr.scancode = 0; |
tr.scancode = 0; |
621 |
return tr; |
return tr; |
622 |
} |
} |
623 |
|
|
624 |
if (tr.modifiers & MapLocalStateMask) |
if (MASK_HAS_BITS(tr.modifiers, MapLocalStateMask)) |
625 |
{ |
{ |
626 |
/* The modifiers to send for this key should be obtained |
/* The modifiers to send for this key should be obtained |
627 |
from the local state. Currently, only shift is implemented. */ |
from the local state. Currently, only shift is implemented. */ |
628 |
if (state & ShiftMask) |
if (MASK_HAS_BITS(state, ShiftMask)) |
629 |
{ |
{ |
630 |
tr.modifiers = MapLeftShiftMask; |
tr.modifiers = MapLeftShiftMask; |
631 |
} |
} |
663 |
/* The modifiers to send for this key should be |
/* The modifiers to send for this key should be |
664 |
obtained from the local state. Currently, only |
obtained from the local state. Currently, only |
665 |
shift is implemented. */ |
shift is implemented. */ |
666 |
if (state & ShiftMask) |
if (MASK_HAS_BITS(state, ShiftMask)) |
667 |
{ |
{ |
668 |
tr.modifiers = MapLeftShiftMask; |
tr.modifiers = MapLeftShiftMask; |
669 |
} |
} |