--- rxvt-unicode/src/keyboard.h 2011/04/30 19:21:45 1.15 +++ rxvt-unicode/src/keyboard.h 2011/11/27 10:49:25 1.19 @@ -28,7 +28,6 @@ #include -#include "feature.h" #include "rxvtutil.h" #define KEYSYM_HASH_BITS 4 /* lowest #bits of keysym is used as hash key */ @@ -60,7 +59,7 @@ /* which are mapped to corresponding lower bits at register time */ uint16_t state; /* indicates each modifiers' DOWN/UP status */ keysym_type type; - const char *str; /* would normally be a keycode translation in UTF-8 */ + char *str; /* would normally be a keycode translation in UTF-8 */ }; class keyboard_manager @@ -69,14 +68,12 @@ keyboard_manager (); ~keyboard_manager (); - 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); private: - void register_keymap (keysym_t *key); - void setup_hash (); int find_keysym (KeySym keysym, unsigned int state); private: