From 28525766a5aaca07251da17af7f057adb26378df Mon Sep 17 00:00:00 2001 From: Benoit de Chezelles Date: Wed, 16 Oct 2019 02:47:14 +0200 Subject: [PATCH] Final changes before 'ready for review' --- glfw/xkb_glfw.c | 1 - kitty/keys.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/glfw/xkb_glfw.c b/glfw/xkb_glfw.c index 0550f4400..a554acd21 100644 --- a/glfw/xkb_glfw.c +++ b/glfw/xkb_glfw.c @@ -568,7 +568,6 @@ void glfw_xkb_handle_key_event(_GLFWwindow *window, _GLFWXKBData *xkb, xkb_keycode_t xkb_keycode, int action) { static char key_text[64] = {0}; const xkb_keysym_t *syms, *clean_syms, *default_syms; - // NOTE: there is no such thing as a `glfw_keycode`, => we could remove the `xkb_` prefix (?) xkb_keysym_t xkb_sym; xkb_keycode_t code_for_sym = xkb_keycode, ibus_keycode = xkb_keycode; GLFWkeyevent glfw_ev; diff --git a/kitty/keys.c b/kitty/keys.c index 903ede393..7139d80e3 100644 --- a/kitty/keys.c +++ b/kitty/keys.c @@ -127,7 +127,7 @@ on_key_input(GLFWkeyevent *ev) { int action = ev->action, native_key = ev->native_key, key = ev->key, mods = ev->mods; const char *text = ev->text ? ev->text : ""; - debug("on_key_input: glfw key: %d native_key: 0x%x action: %s mods: 0x%x text: '%s' state: %d ", + debug("on_key_input: glfw key: %d native_code: 0x%x action: %s mods: 0x%x text: '%s' state: %d ", key, native_key, (action == GLFW_RELEASE ? "RELEASE" : (action == GLFW_PRESS ? "PRESS" : "REPEAT")), mods, text, ev->ime_state);