/[rdesktop]/sourceforge.net/trunk/rdesktop/xkeymap.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xkeymap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1218 by astrand, Fri Apr 7 22:17:14 2006 UTC revision 1219 by astrand, Fri Apr 7 22:20:43 2006 UTC
# Line 612  xkeymap_translate_key(uint32 keysym, uns Line 612  xkeymap_translate_key(uint32 keysym, uns
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                                  }                                  }
# Line 661  xkeymap_translate_key(uint32 keysym, uns Line 661  xkeymap_translate_key(uint32 keysym, uns
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                          }                          }

Legend:
Removed from v.1218  
changed lines
  Added in v.1219

  ViewVC Help
Powered by ViewVC 1.1.26