X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FKeySequence.h;h=cae65d536fcea8f091fac214d2d8c31581ec4409;hb=c10e3f87ac087486971eaedead42d98891596758;hp=d720534536b1b3b9e53dedcaa8651b1ba40a3065;hpb=36f7fcdee059e1db827f4686d574eb59d521d92c;p=lyx.git diff --git a/src/KeySequence.h b/src/KeySequence.h index d720534536..cae65d536f 100644 --- a/src/KeySequence.h +++ b/src/KeySequence.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author Jean-Marc Lasgouttes * * Full author contact details are available in file CREDITS. @@ -66,7 +66,7 @@ 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 @@ -82,27 +82,27 @@ public: */ docstring const printOptions(bool forgui) const; - /// Mark the sequence as deleted. - void mark_deleted(); - /// Reset sequence to become "deleted" void reset(); /// clear in full void clear(); + /// remove last key in sequence + void removeKey(); + bool deleted() const { return deleted_; } /// 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