* 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
*
#include <config.h>
#include "Intl.h"
-#include "debug.h"
#include "LyXRC.h"
-using std::endl;
-
+#include "support/debug.h"
namespace lyx {
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();
}
void Intl::initKeyMapper(bool on)
{
- LYXERR(Debug::INIT) << "Initializing key mappings..." << endl;
+ LYXERR(Debug::INIT, "Initializing key mappings...");
if (trans.setPrimary(prim_lang) == -1)
prim_lang.erase();