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

Contents of /sourceforge.net/trunk/rdesktop/keymaps/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 69 - (show annotations)
Sat Jul 27 22:35:38 2002 UTC (21 years, 10 months ago) by astrand
File size: 1900 byte(s)
Added "localstate" support to keymapping: Send local modifier state. This fixes problems with Shift-Home etc

1 Keymap-files
2 ============
3 The keymaps are line based. There are three different types of lines:
4
5 1) include-lines
6 Syntax:
7 include <another-map-file>
8
9
10 2) map-lines
11 Syntax:
12 map <hex-number>
13
14 Map-lines specifies how the remote RDP server should interpret the
15 sent scancodes.
16
17
18 3) Translation-lines
19 Syntax:
20 <keysym-name> <scancode> [flags..]
21
22 The scancode can be found in scancodes.h. Note: The scancode value for
23 extended keys can be calculated by OR:ing with 0x80. Example: The
24 Delete key have the scancode sequence 0xe0, 0x52. You can get the
25 scancode value to put into the map file by running:
26
27 python -c "print hex(0x80 | 0x52)"
28
29 If flags are "altgr", "shift", "numlock", the scancode sent for this
30 keysym will be prefix with AltGr, Shift or Numlock.
31
32 If flags include "addupper", an translation for this keysyms uppercase
33 name will as well, in addition to the non-uppercase name. Example:
34
35 x 2d addupper
36
37 ...will add an translation for "X" automatically, just like if you
38 would specify:
39
40 X 2d shift
41
42 If flags include "localstate", the modifier to send will be determined
43 by the local modifier state.
44
45 Suggested X11 keysym mapping on PCs
46 ===================================
47 Unfortunately, there is no standard for which keysyms a given key
48 should generate. If you have a PC-keyboard with Windows keys, I suggest this mapping:
49
50 Keyboard keys:
51 CtrlLeft WinLeft AltLeft Space AltGr WinRight Menu CtrlRight
52
53 ...should generate keysyms:
54 Control_L Hyper_L Alt_L space Mode_switch Hyper_R Menu Control_R
55
56 Additionally:
57 Shift-Alt should produce Meta_L
58 Shift-AltGr should produce Multi_Key.
59
60 Use a modifier-map like this:
61
62 shift Shift_L (0x32), Shift_R (0x3e)
63 lock Caps_Lock (0x25)
64 control Control_L (0x42), Control_R (0x6d)
65 mod1 Alt_L (0x40)
66 mod2 Num_Lock (0x4d)
67 mod3 Mode_switch (0x71)
68 mod4 Hyper_L (0x73), Hyper_R (0x74)
69 mod5 Scroll_Lock (0x4e)

  ViewVC Help
Powered by ViewVC 1.1.26