/[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 164 by matthewc, Sat Sep 14 13:47:24 2002 UTC revision 165 by astrand, Mon Sep 16 13:21:44 2002 UTC
# Line 289  xkeymap_translate_key(KeySym keysym, uns Line 289  xkeymap_translate_key(KeySym keysym, uns
289          if ((keycode >= min_keycode) && (keycode <= 0x60))          if ((keycode >= min_keycode) && (keycode <= 0x60))
290          {          {
291                  tr.scancode = keycode - min_keycode;                  tr.scancode = keycode - min_keycode;
292    
293                    /* The modifiers to send for this key should be
294                       obtained from the local state. Currently, only
295                       shift is implemented. */
296                    if (state & ShiftMask)
297                    {
298                            tr.modifiers = MapLeftShiftMask;
299                    }
300    
301                  fprintf(stderr, "Sending guessed scancode 0x%x\n", tr.scancode);                  fprintf(stderr, "Sending guessed scancode 0x%x\n", tr.scancode);
302          }          }
303          else          else
# Line 367  ensure_remote_modifiers(uint32 ev_time, Line 376  ensure_remote_modifiers(uint32 ev_time,
376                  {                  {
377                          /* Should not use this modifier. Send up. */                          /* Should not use this modifier. Send up. */
378                          rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LSHIFT);                          rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_LSHIFT);
379                            rdp_send_scancode(ev_time, RDP_KEYRELEASE, SCANCODE_CHAR_RSHIFT);
380                  }                  }
381          }          }
382    

Legend:
Removed from v.164  
changed lines
  Added in v.165

  ViewVC Help
Powered by ViewVC 1.1.26