#define KB_SEQUENCE_H
#include "frontends/key_state.h"
-#include "frontends/LyXKeySym.h"
+#include "frontends/KeySymbol.h"
#include <string>
#include <vector>
/// Holds a key sequence and the current and standard keymaps
class KeySequence {
public:
- typedef std::vector<LyXKeySymPtr> Sequence;
+ typedef std::vector<KeySymbol> Sequence;
friend class KeyMap;
+ KeySequence() : stdmap(0), curmap(0), deleted_(true) {}
///
KeySequence(KeyMap * std, KeyMap * cur)
: stdmap(std), curmap(cur), deleted_(false) {}
* @return the action matching this key sequence or LFUN_UNKNOWN_ACTION
*/
FuncRequest const &
- addkey(LyXKeySymPtr keysym, key_modifier::state mod,
+ addkey(KeySymbol const & keysym, key_modifier::state mod,
key_modifier::state nmod = key_modifier::none);
/**
/**
* Return the current sequence as a string.
- * @param forgui true if the string should use translations and
- * special characters.
+ * @param forgui true if the string should use translations and
+ * special characters.
* @see parse()
*/
docstring const print(bool forgui) const;
/**
* Return the current sequence and available options as
* a string. No options are added if no curmap kb map exists.
- * @param forgui true if the string should use translations and
- * special characters.
+ * @param forgui true if the string should use translations and
+ * special characters.
*/
docstring const printOptions(bool forgui) const;