X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fkbsequence.C;h=dc1706dda6939b84980c55bc396ddbecf97b6545;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=ffe1661c5b562dc05d1cf60df5f9e9e068c57a21;hpb=500fa5f5912440de5cc5f1dcb75955f4b09b9e50;p=lyx.git diff --git a/src/kbsequence.C b/src/kbsequence.C index ffe1661c5b..dc1706dda6 100644 --- a/src/kbsequence.C +++ b/src/kbsequence.C @@ -21,6 +21,9 @@ #include "frontends/LyXKeySym.h" #include "frontends/LyXKeySymFactory.h" + +namespace lyx { + using std::make_pair; using std::string; @@ -137,7 +140,7 @@ string const kb_sequence::print() const KeySequence::size_type i, length = sequence.size(); for (i = 0; i < length; ++i) { - buf += kb_keymap::printKeySym(*sequence[i], modifiers[i].first); + buf += sequence[i]->print(modifiers[i].first); // append a blank if (i + 1 < length) { @@ -157,7 +160,7 @@ string const kb_sequence::printOptions() const if (!curmap) return buf; - buf += _(" options: "); + buf += to_utf8(_(" options: ")); buf += curmap->print(); return buf; } @@ -180,3 +183,6 @@ void kb_sequence::clear() sequence.clear(); reset(); } + + +} // namespace lyx