Fix French keyboard mapping.

This commit is contained in:
Michael Jumper 2013-05-09 00:19:55 -07:00
parent 9557ca05ab
commit 5a5a02f99b

View File

@ -62,6 +62,7 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
/* numbersign */ /* numbersign */
{ .keysym = 0x0023, .scancode = 0x04, { .keysym = 0x0023, .scancode = 0x04,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* dollar */ /* dollar */
@ -70,7 +71,7 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
/* percent */ /* percent */
{ .keysym = 0x0025, .scancode = 0x28, { .keysym = 0x0025, .scancode = 0x28,
.set_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .set_keysyms = GUAC_KEYSYMS_SHIFT },
/* ampersand */ /* ampersand */
{ .keysym = 0x0026, .scancode = 0x02, { .keysym = 0x0026, .scancode = 0x02,
@ -110,7 +111,7 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
/* slash */ /* slash */
{ .keysym = 0x002f, .scancode = 0x34, { .keysym = 0x002f, .scancode = 0x34,
.set_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .set_keysyms = GUAC_KEYSYMS_SHIFT },
/* 0 */ /* 0 */
{ .keysym = 0x0030, .scancode = 0x0B, { .keysym = 0x0030, .scancode = 0x0B,
@ -178,6 +179,7 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
/* at */ /* at */
{ .keysym = 0x0040, .scancode = 0x0B, { .keysym = 0x0040, .scancode = 0x0B,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* A */ /* A */
@ -286,18 +288,22 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
/* bracketleft */ /* bracketleft */
{ .keysym = 0x005b, .scancode = 0x06, { .keysym = 0x005b, .scancode = 0x06,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* backslash */ /* backslash */
{ .keysym = 0x005c, .scancode = 0x09, { .keysym = 0x005c, .scancode = 0x09,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* bracketright */ /* bracketright */
{ .keysym = 0x005d, .scancode = 0x0c, { .keysym = 0x005d, .scancode = 0x0c,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* asciicircum */ /* asciicircum */
{ .keysym = 0x005e, .scancode = 0x0a, { .keysym = 0x005e, .scancode = 0x0a,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* underscore */ /* underscore */
@ -306,6 +312,7 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
/* quoteleft */ /* quoteleft */
{ .keysym = 0x0060, .scancode = 0x08, { .keysym = 0x0060, .scancode = 0x08,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* a */ /* a */
@ -414,68 +421,82 @@ static guac_rdp_keysym_desc __guac_rdp_keymap_mapping[] = {
/* braceleft */ /* braceleft */
{ .keysym = 0x007b, .scancode = 0x05, { .keysym = 0x007b, .scancode = 0x05,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* bar */ /* bar */
{ .keysym = 0x007c, .scancode = 0x07, { .keysym = 0x007c, .scancode = 0x07,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* braceright */ /* braceright */
{ .keysym = 0x007d, .scancode = 0x0D, { .keysym = 0x007d, .scancode = 0x0D,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* asciitilde */ /* asciitilde */
{ .keysym = 0x007e, .scancode = 0x03, { .keysym = 0x007e, .scancode = 0x03,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* pound */ /* pound */
{ .keysym = 0x00a3, .scancode = 0x1b, { .keysym = 0x00a3, .scancode = 0x1b,
.set_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .set_keysyms = GUAC_KEYSYMS_SHIFT },
/* currency */ /* currency */
{ .keysym = 0x00a4, .scancode = 0x1b, { .keysym = 0x00a4, .scancode = 0x1b,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* section */ /* section */
{ .keysym = 0x00a7, .scancode = 0x35, { .keysym = 0x00a7, .scancode = 0x35,
.set_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .set_keysyms = GUAC_KEYSYMS_SHIFT },
/* degree */ /* degree */
{ .keysym = 0x00b0, .scancode = 0x0c, { .keysym = 0x00b0, .scancode = 0x0c,
.set_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .set_keysyms = GUAC_KEYSYMS_SHIFT },
/* micro */ /* micro */
{ .keysym = 0x00b5, .scancode = 0x2b, { .keysym = 0x00b5, .scancode = 0x2b,
.set_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .set_keysyms = GUAC_KEYSYMS_SHIFT },
/* a + grave */ /* dead umlaut */
{ .keysym = 0xfe57, .scancode = 0x1a,
.set_keysyms = GUAC_KEYSYMS_SHIFT },
/* dead circum */
{ .keysym = 0xfe52, .scancode = 0x1a,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
/* à */
{ .keysym = 0x00e0, .scancode = 0x0b, { .keysym = 0x00e0, .scancode = 0x0b,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
/* a + umlaut */ /* ç */
{ .keysym = 0x00e4, .scancode = 0x1a,
.set_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
/* Ccedil */
{ .keysym = 0x00e7, .scancode = 0x0a, { .keysym = 0x00e7, .scancode = 0x0a,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
/* e + grave */ /* è */
{ .keysym = 0x00e8, .scancode = 0x08, { .keysym = 0x00e8, .scancode = 0x08,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
/* e + acute */ /* é */
{ .keysym = 0x00e9, .scancode = 0x03, { .keysym = 0x00e9, .scancode = 0x03,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
/* u + grave */ /* ù */
{ .keysym = 0x00f9, .scancode = 0x28, { .keysym = 0x00f9, .scancode = 0x28,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT }, .clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
/* euro */ /* euro */
{ .keysym = 0x10020ac, .scancode = 0x12, { .keysym = 0x10020ac, .scancode = 0x12,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT,
.set_keysyms = GUAC_KEYSYMS_CTRL_ALT }, .set_keysyms = GUAC_KEYSYMS_CTRL_ALT },
/* two superior */
{ .keysym = 0x00b2, .scancode = 0x29,
.clear_keysyms = GUAC_KEYSYMS_ALL_SHIFT },
{0} {0}
}; };