X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FKeySequence.h;h=6e46abac2c95a583a76bc48ded8e14383ab5702f;hb=04c0cce43e255eaf1350ceddee2b03585310bfdc;hp=0ace8febe384a627164a8a1f683fbca10db6eca5;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/KeySequence.h b/src/KeySequence.h index 0ace8febe3..6e46abac2c 100644 --- a/src/KeySequence.h +++ b/src/KeySequence.h @@ -40,12 +40,12 @@ public: /** * 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 key 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 */ - FuncRequest const & addkey(KeySymbol const & keysym, KeyModifier mod, + FuncRequest const & addkey(KeySymbol const & key, KeyModifier mod, KeyModifier nmod = NoModifier); /** @@ -66,13 +66,13 @@ public: ForGui, //< use platform specific translations and special characters BindFile //< the format used in lyx bind files }; - + /** * Return the current sequence as a string. * @param format output format * @see parse() */ - docstring const print(outputFormat format) const; + docstring const print(outputFormat format, bool const untranslated = false) const; /** * Return the current sequence and available options as @@ -82,9 +82,6 @@ public: */ docstring const printOptions(bool forgui) const; - /// Mark the sequence as deleted. - void mark_deleted(); - /// Reset sequence to become "deleted" void reset(); @@ -99,13 +96,13 @@ public: /// length of sequence size_t length() const { return sequence.size(); } +private: /// Keymap to use if a new sequence is starting KeyMap * stdmap; /// Keymap to use for the next key KeyMap * curmap; -private: /** * Array holding the current key sequence as KeySyms. * If sequence[length - 1] < 0xff it can be used as ISO8859 char