X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fkbmap.C;h=e861392c4f4eb793937c4bf80b949e402977c192;hb=5d3718cad2a2ef6a4d6a495054ab0705ba27b6b5;hp=3d86b2c74c857dc81bbea5a47023f1d66f8f0b2a;hpb=7072a496e2dd83ce0d665ca61c69b779188df8d5;p=lyx.git diff --git a/src/kbmap.C b/src/kbmap.C index 3d86b2c74c..e861392c4f 100644 --- a/src/kbmap.C +++ b/src/kbmap.C @@ -9,10 +9,6 @@ #include -#ifdef __GNUG__ -#pragma implementation -#endif - #include "kbmap.h" #include "commandtags.h" #include "kbsequence.h" @@ -45,7 +41,7 @@ string::size_type kb_keymap::bind(string const & seq, int action) if (lyxerr.debugging(Debug::KBMAP)) { lyxerr << "BIND: Sequence `" << seq << "' Action `" - << action << "'" << endl; + << action << '\'' << endl; } kb_sequence k(0, 0); @@ -77,7 +73,7 @@ int kb_keymap::lookup(LyXKeySymPtr key, key_modifier::state mask(cit->mod.second); key_modifier::state check = static_cast(mod & ~mask); - + if (*(cit->code) == *key && cit->mod.first == check) { // match found if (cit->table.get()) { @@ -177,9 +173,9 @@ string const kb_keymap::findbinding(int act, string const & prefix) const res += cit->table->findbinding(act, prefix + printKey((*cit)) - + " "); + + ' '); } else if (cit->action == act) { - res += "["; + res += '['; res += prefix + printKey((*cit)); res += "] "; }