#include <stdlib.h>
#include <inttypes.h>
-#include <ctype.h>
#include <assert.h>
#include <xcb/xcb.h>
{ XF86XK_Reload, KEY_BROWSER_REFRESH, },
};
- /* X11 and VLC both use the ASCII code for printable ASCII characters. */
- if (isascii(sym))
+ /* X11 Latin-1 range */
+ if (sym <= 0xff)
return sym;
+ /* X11 Unicode range */
+ if (sym >= 0x1000100 && sym <= 0x110ffff)
+ return sym - 0x1000000;
/* Special keys */
res = bsearch (&sym, tab, sizeof (tab) / sizeof (tab[0]), sizeof (tab[0]),