+ kb_sequence(kb_keymap * std, kb_keymap * cur)
+ : stdmap(std), curmap(cur), deleted_(false) {}
+
+ /**
+ * Add a key to the key sequence and look it up in the curmap
+ * if the latter is defined.
+ * @param keysym the key to add
+ * @param mod modifier mask
+ * @param nmod which modifiers to mask out for equality test
+ * @return the action matching this key sequence or LFUN_UNKNOWN_ACTION
+ */
+ int addkey(LyXKeySymPtr keysym, key_modifier::state mod,
+ key_modifier::state nmod = key_modifier::none);
+
+ /**
+ * Add a sequence of keys from a string to the sequence
+ * @return string::npos if OK, else error position in string
+ *
+ * Keys in the string must be separated with whitespace;
+ * Use the keysym names used by XStringToKeysym, f.ex.
+ * "Space", "a", "Return", ...
+ * Prefixes are S-, C-, M- for shift, control, meta
+ * Prefixes can also be ignored by using the Tilde "~"
+ * f.ex.: "~S-Space".
+ */
+ string::size_type parse(string const & s);
+
+ /**
+ * Return the current sequence as a string.
+ * @see parse()
+ */
+ string const print() const;
+
+ /**
+ * Return the current sequence and available options as
+ * a string. No options are added if no curmap kb map exists.
+ */
+ string const printOptions() const;
+
+ /// Mark the sequence as deleted.
+ void mark_deleted();
+
+ /// Reset sequence to become "deleted"
+ void reset();
+
+ /// clear in full
+ void clear();
+
+ bool deleted() const {
+ return deleted_;