summaryrefslogtreecommitdiffstats
path: root/genkeymap/genkeymap.c
diff options
context:
space:
mode:
authorjsorg71 <jay.sorg@gmail.com>2014-11-08 21:25:40 -0800
committerjsorg71 <jay.sorg@gmail.com>2014-11-08 21:25:40 -0800
commitc39d2b0912cc6a5fec7dd07b5fd03779df692999 (patch)
tree088385f4487b081c53d3c502508859960698cec4 /genkeymap/genkeymap.c
parentb66aafcd31b086b8d5eb1fe73e083d0b24ddb5fc (diff)
parentcc3231272daa1b190df6f532203a242bdcc91e24 (diff)
downloadxrdp-proprietary-c39d2b0912cc6a5fec7dd07b5fd03779df692999.tar.gz
xrdp-proprietary-c39d2b0912cc6a5fec7dd07b5fd03779df692999.zip
Merge pull request #178 from mgorny/altgr-keymap
altgr+shift/capslock support in keymaps
Diffstat (limited to 'genkeymap/genkeymap.c')
-rw-r--r--genkeymap/genkeymap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/genkeymap/genkeymap.c b/genkeymap/genkeymap.c
index 2c640ce8..088af748 100644
--- a/genkeymap/genkeymap.c
+++ b/genkeymap/genkeymap.c
@@ -48,8 +48,8 @@ int main(int argc, char **argv)
char text[256];
char *displayname = NULL;
char *outfname;
- char *sections[6] = {"noshift", "shift", "altgr", "shiftaltgr", "capslock", "shiftcapslock"};
- int states[6] = {0, 1, 0x80, 0x81, 2, 3};
+ char *sections[8] = {"noshift", "shift", "altgr", "shiftaltgr", "capslock", "capslockaltgr", "shiftcapslock", "shiftcapslockaltgr"};
+ int states[8] = {0, 1, 0x80, 0x81, 2, 0x82, 3, 0x83};
int i;
int idx;
int char_count;
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
e.display = dpy;
e.same_screen = True;
- for (idx = 0; idx < 6; idx++) /* Sections and states */
+ for (idx = 0; idx < 8; idx++) /* Sections and states */
{
fprintf(outf, "[%s]\n", sections[idx]);
e.state = states[idx];
@@ -148,7 +148,7 @@ int main(int argc, char **argv)
fprintf(outf, "Key%d=%d:%d\n", i, (int) ks, unicode);
}
- if (idx != 4)
+ if (idx != 7)
{
fprintf(outf, "\n");
}