X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FXLyXKeySym.C;h=a16a7bc6c12e90eb9a66f9851463d79761a17e26;hb=d5443737342903de489d527802cd2cdd38987d74;hp=3d052724c052937cdc2102f63e0b6841a7b95b51;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/frontends/xforms/XLyXKeySym.C b/src/frontends/xforms/XLyXKeySym.C index 3d052724c0..a16a7bc6c1 100644 --- a/src/frontends/xforms/XLyXKeySym.C +++ b/src/frontends/xforms/XLyXKeySym.C @@ -3,22 +3,34 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Asger and Juergen + * \author Asger and Jürgen * * Full author contact details are available in file CREDITS. */ #include - #include "XLyXKeySym.h" #include "debug.h" +#include "kbmap.h" -#include #include using std::endl; +using std::string; + + +bool operator==(LyXKeySym const & k1, LyXKeySym const & k2) +{ + using lyx::frontend::XLyXKeySym; + return static_cast(k1).keysym() + == static_cast(k2).keysym(); +} + + +namespace lyx { +namespace frontend { XLyXKeySym::XLyXKeySym() : LyXKeySym(), keysym_(NoSymbol) @@ -100,8 +112,10 @@ char XLyXKeySym::getISOEncoded(string const &) const } -bool operator==(LyXKeySym const & k1, LyXKeySym const & k2) +string const XLyXKeySym::print(key_modifier::state mod) const { - return static_cast(k1).keysym() - == static_cast(k2).keysym(); + return kb_keymap::printKeySym(*this, mod); } + +} // namespace frontend +} // namespace lyx