Commit 54371a95 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB/window: Latin-1 non-ASCII keys support

parent 3b90678b
......@@ -26,7 +26,6 @@
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <assert.h>
#include <xcb/xcb.h>
......@@ -176,8 +175,8 @@ static uint_fast32_t ConvertKeySym (xcb_keysym_t sym)
{ 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;
/* Special keys */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment