+bool operator==(LyXKeySym const & k1, LyXKeySym const & k2)
+{
+ using lyx::frontend::XLyXKeySym;
+ return static_cast<XLyXKeySym const &>(k1).keysym()
+ == static_cast<XLyXKeySym const &>(k2).keysym();
+}
+
+
+namespace lyx {
+namespace frontend {
+