]> git.lyx.org Git - lyx.git/blobdiff - src/kbmap.C
more code in the menu backend == less code in the menu frontends; add support for...
[lyx.git] / src / kbmap.C
index 3d86b2c74c857dc81bbea5a47023f1d66f8f0b2a..e861392c4f4eb793937c4bf80b949e402977c192 100644 (file)
@@ -9,10 +9,6 @@
 
 #include <config.h>
 
-#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<key_modifier::state>(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 += "] ";
                }