X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FIntl.cpp;h=fdae0b1aba144b5bc1471e0749830fba66d0f7ea;hb=f58638c704b0b4ac66e5f88431901977cc7801be;hp=3b8fa674dd8a052c0b4016425449305e0f0d8180;hpb=e1ce2f92db49d50c688414a32944be8e718faa2e;p=lyx.git diff --git a/src/Intl.cpp b/src/Intl.cpp index 3b8fa674dd..fdae0b1aba 100644 --- a/src/Intl.cpp +++ b/src/Intl.cpp @@ -4,7 +4,7 @@ * Licence details can be found in the file COPYING. * * \author unknown - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author Angus Leeming * \author John Levon * @@ -14,11 +14,9 @@ #include #include "Intl.h" -#include "debug.h" #include "LyXRC.h" -using std::endl; - +#include "support/debug.h" namespace lyx { @@ -39,18 +37,19 @@ void Intl::keyMapOn(bool on) keyMapPrim(); else keyMapSec(); - } else + } else { trans.disableKeymap(); + } } void Intl::toggleKeyMap() { - if (keymapon && (keymap == PRIMARY)) { + if (keymapon && (keymap == PRIMARY)) keyMapSec(); - } else if (keymapon) { + else if (keymapon) keyMapOn(false); - } else + else keyMapPrim(); }