3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
27 : keymap(Intl::PRIMARY), keymapon(lyxrc.use_kbmap),
28 prim_lang(lyxrc.primary_kbmap), sec_lang(lyxrc.secondary_kbmap)
33 void Intl::keyMapOn(bool on)
38 if (keymap == PRIMARY)
43 trans.disableKeymap();
47 void Intl::toggleKeyMap()
49 if (keymapon && (keymap == PRIMARY)) {
51 } else if (keymapon) {
58 void Intl::keyMapPrim()
60 if (!trans.setPrimary(prim_lang))
61 trans.enablePrimary();
68 void Intl::keyMapSec()
70 if (!trans.setSecondary(sec_lang))
71 trans.enableSecondary();
78 void Intl::initKeyMapper(bool on)
80 LYXERR(Debug::INIT) << "Initializing key mappings..." << endl;
82 if (trans.setPrimary(prim_lang) == -1)
84 if (trans.setSecondary(sec_lang) == -1)
87 if (prim_lang.empty() && sec_lang.empty())