1
0
mirror of git://git.suckless.org/svkbd synced 2024-12-18 04:04:44 +00:00

Fix broken key definitions in layout.en.h

There were two problems with this file.

First, there were commas missing from the definitions for XK_7, XK_0,
XK_minus, and XK_plus. This prevented svkbd from even compiling.

Secondly, XK_Return was misdefined. This resulted in an immediate
segmentation fault upon loading the program.
This commit is contained in:
Sebastian LaVine 2021-07-02 15:23:07 -04:00 committed by Hiltjo Posthuma
parent 34e5659db8
commit e2dff73599

View File

@ -6,12 +6,12 @@ static Key keys_en[] = {
{ "4","$", XK_4, 1 },
{ "5","%", XK_5, 1 },
{ "6","^", XK_6, 1 },
{ "7","&" XK_7, 1 },
{ "7","&", XK_7, 1 },
{ "8","*", XK_8, 1 },
{ "9","(", XK_9, 1 },
{ "0",")" XK_0, 1 },
{ "-","_" XK_minus, 1 },
{ "=","+" XK_plus, 1 },
{ "0",")", XK_0, 1 },
{ "-","_", XK_minus, 1 },
{ "=","+", XK_plus, 1 },
{ "⌫Bksp",0, XK_BackSpace, 2 },
{ 0 }, /* New row */
{ "->|",0, XK_Tab, 1 },
@ -27,7 +27,7 @@ static Key keys_en[] = {
{ 0, 0, XK_p, 1 },
{ "[","{", XK_bracketleft, 1 },
{ "]", "}", XK_bracketright, 1 },
{ "Return", XK_Return, 3 },
{ "Enter", 0, XK_Return, 3 },
{ 0 }, /* New row */
{ 0, 0, XK_Caps_Lock, 2 },
{ 0, 0, XK_a, 1 },