X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmisc.c;h=c3e5b205eaa0e83837b2ed5b13d5bf4db5000d71;hb=c16ef99848a25648feccaae350ada6f8665a18f4;hp=e917e13be6126ca7d1332a670a029b111494b437;hpb=05c80e257e74b9f48c5d4b5cc807db0a4fb82fd2;p=rocksndiamonds.git diff --git a/src/misc.c b/src/misc.c index e917e13b..c3e5b205 100644 --- a/src/misc.c +++ b/src/misc.c @@ -621,9 +621,9 @@ void translate_keyname(KeySym *keysym, char **x11name, char **name, int mode) { XK_slash, "XK_slash", "/" }, { XK_colon, "XK_colon", ":" }, { XK_semicolon, "XK_semicolon", ";" }, - { XK_less, "XK_less", "less" }, - { XK_equal, "XK_equal", "equal" }, - { XK_greater, "XK_greater", "greater" }, + { XK_less, "XK_less", "<" }, + { XK_equal, "XK_equal", "=" }, + { XK_greater, "XK_greater", ">" }, { XK_question, "XK_question", "?" }, { XK_at, "XK_at", "@" }, @@ -847,12 +847,6 @@ char getCharFromKeySym(KeySym keysym) letter = keyname[0]; else if (strcmp(keyname, "space") == 0) letter = ' '; - else if (strcmp(keyname, "less") == 0) - letter = '<'; - else if (strcmp(keyname, "equal") == 0) - letter = '='; - else if (strcmp(keyname, "greater") == 0) - letter = '>'; else if (strcmp(keyname, "circumflex") == 0) letter = '^';