2 /* ======================================================================= *\
3 File : kbmap.h, kbmap.h,v 1.3 1996/12/10 04:35:57 larsbj Exp
4 Author : chb, 30.Oct.1995
6 Purpose: class definitions for XKeyEvent keymap handling
7 \* ==================================================================== */
23 /// Defines key maps and actions for key sequences
29 /** Bind a key-sequence to an action.
30 Returns 0 on success. Otherwise, position in string where
32 int bind(char const * seq, int action);
35 void print(string & buf) const;
37 /// Look up a key in the keymap
38 int lookup(unsigned int key,
39 unsigned int mod, kb_sequence * seq) const;
41 /// Given an action, find all keybindings.
42 string findbinding(int action) const;
52 /// Keymap for prefix keys
55 /// Action for !prefix keys
60 /// Define a new key sequence
61 int defkey(kb_sequence * seq, int action, int idx = 0);
63 static string keyname(kb_key const & k);
67 void printKey(kb_key const & key, string & buf);
73 typedef list<kb_key> Table;