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 \* ==================================================================== */
21 /// Holds a key sequence and the current and standard keymaps
30 /** Add a key to the key sequence and look it up in the curmap
31 if the latter is defined. */
32 int addkey(unsigned int key, unsigned int mod, unsigned int nmod = 0);
35 int print(string & buf, bool when_defined = false) const;
38 int printOptions(string & buf) const;
40 /// Make length negative to mark the sequence as deleted
47 unsigned int getsym() const;
53 string::size_type parse(string const & s);
55 /// Keymap to use if a new sequence is starting
58 /// Keymap to use for the next key
61 /** Array holding the current key sequence.
62 If sequence[length-1] < 0xff it can be used as ISO8859 char */
63 std::vector<unsigned int> sequence;
66 std::vector<unsigned int> modifiers;
68 /// Current length of key sequence