]> git.proxmox.com Git - qemu.git/blobdiff - ui/keymaps.c
rng-egd: remove redundant free
[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;
 }