--- rxvt-unicode/src/keyboard.h 2011/02/21 07:41:01 1.13 +++ rxvt-unicode/src/keyboard.h 2011/05/07 18:29:18 1.16 @@ -47,17 +47,11 @@ #endif struct rxvt_term; -struct keysym_t; - -typedef void (keyevent_handler) (rxvt_term *rt, - keysym_t *key, - KeySym keysym, - unsigned int state); struct keysym_t { enum keysym_type { - STRING, LIST, BUILTIN, + STRING, BUILTIN, }; KeySym keysym; @@ -65,7 +59,6 @@ /* the higher bits are preserved for Meta/NumLock keys */ /* which are mapped to corresponding lower bits at register time */ uint16_t state; /* indicates each modifiers' DOWN/UP status */ - uint16_t range; /* =1: single keysym; >1: a of range keysyms */ keysym_type type; const char *str; /* would normally be a keycode translation in UTF-8 */ }; @@ -78,6 +71,7 @@ void clear (); void register_user_translation (KeySym keysym, unsigned int state, const char *trans); + void register_translation (KeySym keysym, unsigned int state, char *translation); void register_done (); // call this to make newly registered keymaps take effect bool dispatch (rxvt_term *term, KeySym keysym, unsigned int state);