diff options
Diffstat (limited to 'input/keycodes.c')
-rw-r--r-- | input/keycodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input/keycodes.c b/input/keycodes.c index a03f07e59a..3d7fd09d11 100644 --- a/input/keycodes.c +++ b/input/keycodes.c @@ -208,6 +208,7 @@ static const struct key_name key_names[] = { { MP_KEY_MOUSE_ENTER, "MOUSE_ENTER" }, { MP_KEY_UNMAPPED, "UNMAPPED" }, + { MP_KEY_ANY_UNICODE, "ANY_UNICODE" }, { 0, NULL } }; @@ -271,8 +272,7 @@ static void mp_input_append_key_name(bstr *buf, int key) } } - // printable, and valid unicode range - if (key >= 32 && key <= 0x10FFFF) { + if (MP_KEY_IS_UNICODE(key)) { mp_append_utf8_bstr(NULL, buf, key); return; } |