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.
28 : keymap(Intl::PRIMARY), keymapon(lyxrc.use_kbmap),
29 prim_lang(lyxrc.primary_kbmap), sec_lang(lyxrc.secondary_kbmap)
34 void Intl::keyMapOn(bool on)
39 if (keymap == PRIMARY)
44 trans.disableKeymap();
48 void Intl::toggleKeyMap()
50 if (keymapon && (keymap == PRIMARY)) {
52 } else if (keymapon) {
59 void Intl::keyMapPrim()
61 if (!trans.setPrimary(prim_lang))
62 trans.enablePrimary();
69 void Intl::keyMapSec()
71 if (!trans.setSecondary(sec_lang))
72 trans.enableSecondary();
79 void Intl::initKeyMapper(bool on)
81 lyxerr[Debug::INIT] << "Initializing key mappings..." << endl;
83 if (trans.setPrimary(prim_lang) == -1)
85 if (trans.setSecondary(sec_lang) == -1)
87 trans.setCharset(lyxrc.font_norm);
89 if (prim_lang.empty() && sec_lang.empty())