commit e2dff73599425ab0e9912cdba00628cc1eed60a0
Author:     Sebastian LaVine <m...@smlavine.com>
AuthorDate: Fri Jul 2 15:23:07 2021 -0400
Commit:     Hiltjo Posthuma <hil...@codemadness.org>
CommitDate: Sat Jul 3 11:02:50 2021 +0200

    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.

diff --git a/layout.en.h b/layout.en.h
index 957a251..1e10601 100644
--- a/layout.en.h
+++ b/layout.en.h
@@ -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 },

Reply via email to