/[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 1236 by matthewc, Wed Jun 14 06:30:54 2006 UTC
# Line 206  xkeymap_from_locale(const char *locale) Line 206  xkeymap_from_locale(const char *locale)
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    
# Line 612  xkeymap_translate_key(uint32 keysym, uns Line 614  xkeymap_translate_key(uint32 keysym, uns
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                                  }                                  }
# Line 661  xkeymap_translate_key(uint32 keysym, uns Line 663  xkeymap_translate_key(uint32 keysym, uns
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                          }                          }

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

  ViewVC Help
Powered by ViewVC 1.1.26