]> Git Repo - qemu.git/blobdiff - ui/keymaps.c
input: add name to input_event_key_number
[qemu.git] / ui / keymaps.c
index f373cc53d9fdc0f878ab4d67a2816505e0103bbd..80d658d907d3d5671ccc7c5c3ceb21f587eea56d 100644 (file)
@@ -33,6 +33,12 @@ static int get_keysym(const name2keysym_t *table,
         if (!strcmp(p->name, name))
             return p->keysym;
     }
+    if (name[0] == 'U' && strlen(name) == 5) { /* try unicode Uxxxx */
+        char *end;
+        int ret = (int)strtoul(name + 1, &end, 16);
+        if (*end == '\0' && ret > 0)
+          return ret;
+    }
     return 0;
 }
 
This page took 0.022764 seconds and 4 git commands to generate.