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.
25 : keymap(Intl::PRIMARY), keymapon(lyxrc.use_kbmap),
26 prim_lang(lyxrc.primary_kbmap), sec_lang(lyxrc.secondary_kbmap)
31 void Intl::keyMapOn(bool on)
36 if (keymap == PRIMARY)
41 trans.disableKeymap();
45 void Intl::toggleKeyMap()
47 if (keymapon && (keymap == PRIMARY)) {
49 } else if (keymapon) {
56 void Intl::keyMapPrim()
58 if (!trans.setPrimary(prim_lang))
59 trans.enablePrimary();
66 void Intl::keyMapSec()
68 if (!trans.setSecondary(sec_lang))
69 trans.enableSecondary();
76 void Intl::initKeyMapper(bool on)
78 lyxerr[Debug::INIT] << "Initializing key mappings..." << endl;
80 if (trans.setPrimary(prim_lang) == -1)
82 if (trans.setSecondary(sec_lang) == -1)
84 trans.setCharset(lyxrc.font_norm);
86 if (prim_lang.empty() && sec_lang.empty())