repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: abdad1d957bac94867821e35a693927d8f09c18f: path_to: revision_to:
commit abdad1d957bac94867821e35a693927d8f09c18f Author: Emanuele GiaquintaDate: Tue Apr 29 12:51:41 2014 +0000 Invoke the on_key_press hook before checking for user-defined and builtin mappings. diff --git a/src/command.C b/src/command.C
--- a/src/command.C
+++ b/src/command.C
@@ -700,6 +700,9 @@ rxvt_term::key_press (XKeyEvent &ev)
len++;
}
+ if (HOOK_INVOKE ((this, HOOK_KEY_PRESS, DT_XEVENT, &ev, DT_INT, keysym, DT_STR_LEN, kbuf, len, DT_END)))
+ return;
+
if (valid_keysym)
{
#ifdef KEYSYM_RESOURCE
@@ -873,9 +876,6 @@ rxvt_term::key_press (XKeyEvent &ev)
#endif
}
- if (HOOK_INVOKE ((this, HOOK_KEY_PRESS, DT_XEVENT, &ev, DT_INT, keysym, DT_STR_LEN, kbuf, len, DT_END)))
- return;
-
if (len <= 0)
return; /* not mapped */
-----END OF PAGE-----