/// Is this a modifier key only?
virtual bool isModifier() const = 0;
+ /// Is this normal insertable text ? (last ditch attempt only)
+ virtual bool isText() const { return false; }
+
/// What is the symbolic name of this key? F.ex. "Return" or "c"
virtual string getSymbolName() const = 0;
* This converts the LyXKeySym to a 8-bit encoded character.
* This relies on user to use the right encoding.
*/
- virtual char getISOEncoded() const = 0;
-
- /**
- * We need to be able to equality compare these for the
- * sake of the keymap business.
- */
- virtual bool operator==(LyXKeySym const & k) const = 0;
+ virtual char getISOEncoded(string const & encoding) const = 0;
};
+
+/**
+ * We need to be able to equality compare these for the
+ * sake of the keymap business.
+ */
+bool operator==(LyXKeySym const & k1, LyXKeySym const & k2);
+
typedef boost::shared_ptr<LyXKeySym> LyXKeySymPtr;
#endif