* 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
* \author John Levon
*
#include <config.h>
#include "KeySequence.h"
-
-#include "gettext.h"
#include "KeyMap.h"
-#include "lfuns.h"
-#include "frontends/KeySymbol.h"
+#include "support/gettext.h"
-using std::make_pair;
-using std::string;
+#include "frontends/KeySymbol.h"
+using namespace std;
namespace lyx {
modifiers.push_back(make_pair(mod, nmod));
sequence.push_back(key);
- if (curmap) {
+ if (curmap)
return curmap->lookup(key, mod, this);
- }
- static FuncRequest unknown(LFUN_UNKNOWN_ACTION);
- return unknown;
+ return FuncRequest::unknown;
}
}
+void KeySequence::removeKey()
+{
+ if (deleted_)
+ return;
+ sequence.pop_back();
+ modifiers.pop_back();
+}
+
+
} // namespace lyx