From c548657c7b52f867c9d7598231219fd90ba7fe81 Mon Sep 17 00:00:00 2001 From: Kevin Cave Date: Sat, 18 Jan 2014 16:28:06 +0000 Subject: [PATCH] Update genkeymap.c Add a "shiftaltgr" section to the keymap generator, which should satisfy keyboard layouts such as km-0415 --- genkeymap/genkeymap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/genkeymap/genkeymap.c b/genkeymap/genkeymap.c index 46513513..91ec9e89 100644 --- a/genkeymap/genkeymap.c +++ b/genkeymap/genkeymap.c @@ -45,8 +45,8 @@ int main(int argc, char **argv) char text[256]; char *displayname = NULL; char *outfname; - char *sections[5] = {"noshift", "shift", "altgr", "capslock", "shiftcapslock"}; - int states[5] = {0, 1, 0x80, 2, 3}; + char *sections[6] = {"noshift", "shift", "altgr", "shiftaltgr", "capslock", "shiftcapslock"}; + int states[6] = {0, 1, 0x80, 0x81, 2, 3}; int i; int idx; int char_count; @@ -94,7 +94,7 @@ int main(int argc, char **argv) e.display = dpy; e.same_screen = True; - for (idx = 0; idx < 5; idx++) /* Sections and states */ + for (idx = 0; idx < 6; idx++) /* Sections and states */ { fprintf(outf, "[%s]\n", sections[idx]); e.state = states[idx];