2014-01-18 20:44:08 +04:00
|
|
|
Creating a new keymap file.
|
|
|
|
---------------------------
|
2009-08-12 10:33:55 +04:00
|
|
|
|
2014-01-18 20:48:16 +04:00
|
|
|
The names of the files are of the format;
|
2009-08-12 10:33:55 +04:00
|
|
|
|
|
|
|
km-xxxx.ini
|
|
|
|
|
2014-01-18 20:44:08 +04:00
|
|
|
where the xxxx is replaced by the hex number of the layout of interest.
|
|
|
|
|
2014-01-18 20:48:16 +04:00
|
|
|
The files have 6 sections;
|
2009-08-12 10:33:55 +04:00
|
|
|
|
2014-01-18 20:44:08 +04:00
|
|
|
[noshift], [shift], [altgr], [shiftaltgr], [capslock], [shiftcapslock]
|
2009-08-12 10:33:55 +04:00
|
|
|
|
2014-01-18 20:44:08 +04:00
|
|
|
In each section there are multiple lines for each key.
|
2009-08-12 10:33:55 +04:00
|
|
|
|
2014-01-18 20:44:08 +04:00
|
|
|
An example line looks like;
|
2009-08-12 10:33:55 +04:00
|
|
|
|
|
|
|
Key10=49:49
|
|
|
|
|
|
|
|
In this line, 10 is the X11 scancode, the first 49 is the keysym value,
|
|
|
|
the second 49 if the unicode value of the key. This is the definition
|
|
|
|
for the 'noshift' '1' key on a en-us keyboard. In this case, the keysym
|
2014-01-18 20:44:08 +04:00
|
|
|
and the unicode value are the same.
|
|
|
|
|
|
|
|
Here is an example where they are not;
|
|
|
|
|
|
|
|
This is the definition for the backspace key;
|
2009-08-12 10:33:55 +04:00
|
|
|
Key22=65288:8
|
|
|
|
|
2014-01-18 20:44:08 +04:00
|
|
|
And this is the star on the keypad;
|
2009-08-12 10:33:55 +04:00
|
|
|
Key63=65450:42
|
|
|
|
|
2014-01-18 20:44:08 +04:00
|
|
|
To create a new file run "xrdp-genkeymap <filename>"
|
|
|
|
|
|
|
|
Example: ./xrdp-genkeymap /etc/xrdp/km-0409.ini
|
2009-08-12 10:33:55 +04:00
|
|
|
|
2014-01-18 20:44:08 +04:00
|
|
|
Note: You need to have enough rights to be able to write to the
|
|
|
|
/etc/xrdp directory.
|
2009-08-12 10:33:55 +04:00
|
|
|
|
2014-01-18 20:44:08 +04:00
|
|
|
Alternatively, create the keymap file in a directory of your choice, then
|
|
|
|
copy or move it over to /etc/xrdp using sudo/su.
|
2009-08-12 10:33:55 +04:00
|
|
|
|