added the "return" and "escape" key to be simulated by global animations
authorHolger Schemel <info@artsoft.org>
Tue, 12 Jun 2018 20:25:52 +0000 (22:25 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 17 Jun 2018 22:02:49 +0000 (00:02 +0200)
src/libgame/misc.c

index 6432523e41ce5c5755a6e385c28abd30995b5aee..6577f95127e93d2b049435c5016188a94a3d6195 100644 (file)
@@ -1516,6 +1516,10 @@ void translate_keyname(Key *keysym, char **x11name, char **name, int mode)
     char *name;
   } translate_key[] =
   {
+    /* return and escape keys */
+    { KSYM_Return,     "XK_Return",            "return" },
+    { KSYM_Escape,     "XK_Escape",            "escape" },
+
     /* normal cursor keys */
     { KSYM_Left,       "XK_Left",              "cursor left" },
     { KSYM_Right,      "XK_Right",             "cursor right" },