--- rxvt-unicode/src/keyboard.h 2010/08/23 15:58:43 1.10 +++ rxvt-unicode/src/keyboard.h 2011/04/30 19:21:45 1.15 @@ -4,7 +4,7 @@ * * All portions of code are copyright by their respective author/s. * Copyright (c) 2005 WU Fengguang - * Copyright (c) 2005-2006 Marc Lehmann + * Copyright (c) 2005-2006 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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, RANGE, RANGE_META8, 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 */ }; @@ -83,18 +76,12 @@ private: void register_keymap (keysym_t *key); - void purge_duplicate_keymap (); void setup_hash (); int find_keysym (KeySym keysym, unsigned int state); private: uint16_t hash[KEYSYM_HASH_BUCKETS]; vector keymap; - -#if STOCK_KEYMAP - // stock keymaps are all static data - static keysym_t stock_keymap[]; -#endif }; #endif /* KEYSYM_RESOURCE */