/[rdesktop]/sourceforge.net/trunk/rdesktop/doc/keymapping.txt
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/doc/keymapping.txt

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

revision 116 by astrand, Wed Sep 11 11:11:27 2002 UTC revision 454 by astrand, Sun Aug 31 19:59:21 2003 UTC
# Line 33  Composing/Multi_key is supported. For mo Line 33  Composing/Multi_key is supported. For mo
33    Irix6:            compose(5)    Irix6:            compose(5)
34    
35    
36  Keymap-files  Keymap files
37  ============  ============
38  The keymaps are line based. There are three different types of lines:  The names of the keymaps follows RFC1766.
39    
40    (You can find a translation from Windows keyboard layout numbers to
41    keymap names by looking at
42    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\RFC1766 in the
43    registry.)
44    
45    
46    Contents of keymap files
47    ========================
48    The keymaps are line based. There are four different types of lines:
49    
50  1) include-lines  1) include-lines
51  Syntax:  Syntax:
# Line 114  mod2        Num_Lock (0x4d) Line 124  mod2        Num_Lock (0x4d)
124  mod3        Mode_switch (0x71)  mod3        Mode_switch (0x71)
125  mod4        Hyper_L (0x73),  Hyper_R (0x74)  mod4        Hyper_L (0x73),  Hyper_R (0x74)
126  mod5        Scroll_Lock (0x4e)  mod5        Scroll_Lock (0x4e)
127    
128    
129    Updating / writing keymap files
130    ===============================
131    When writing new or updating keymap files, please use comments and
132    blanks, to increase readability. The "sv" keymap is a good template.
133    
134    When you need to add a translation to a keymap file, do:
135    
136        1. Get the "key number" for this key, by looking at keynums.png.
137    
138        2. Take a look at scancodes.h, and look for
139        SCANCODE_KEY_<my-key-number>. The scancode value is at the end of
140        the line. If the line contains (SCANCODE_EXTENDED | 0xsomething),
141        then you should OR 0x80 to this value. For example, you can do:
142        
143        python -c "print hex(0x80 | 0xsomething)"
144    
145        3. Put the scancode (from step 2) and keysym name (found in the
146        error message) into the keymap file.
147    
148    
149    Special keys
150    ============
151    
152    * The combination Ctrl-Alt-Enter toggles between fullscreen and
153      non-fullscreen mode.
154    
155    * Meta, Hyper and Super will be treated as windows keys. RDP4 does not
156      support the windows keys though, so if you are running RDP4, these
157      keys will translate to Ctrl-Esc.
158    
159    
160    Links
161    =====
162    http://www.win.tue.nl/~aeb/linux/kbd/scancodes.html

Legend:
Removed from v.116  
changed lines
  Added in v.454

  ViewVC Help
Powered by ViewVC 1.1.26