我正在创建自定义 XKB 布局。我的欧洲键盘有一个物理小/大键,我想将其映射为第三级修饰键。我成功地使用了include level3(lsgt_switch)
然而,这也有禁用我的逗号符号的不良副作用,其行是:
key <AB08> { [ comma, less, ograve, Ograve ] };
我还发现任何带有该less
符号的行都会被禁用。有什么办法可以解决这个问题吗?
完整布局:
default
partial alphanumeric_keys modifier_keys
xkb_symbols "maximekey"
{
name[Group1] = "Maximekey";
key <AB01> { [ y, Y, agrave, Agrave ] };
key <AB02> { [ x, X, aacute, Aacute ] };
key <AB03> { [ c, C, ccedilla, Ccedilla ] };
key <AB04> { [ v, V, igrave, Igrave ] };
key <AB05> { [ b, B, iacute, Iacute ] };
key <AB06> { [ n, N, ntilde, Ntilde ] };
key <AB07> { [ m, M, dead_greek, Multi_key ] };
key <AB08> { [ comma, less, ograve, Ograve ] }; // LINE ALPHA
key <AB09> { [ period, greater, oacute, Oacute ] };
key <AB10> { [ slash, question, questiondown, 0x1002026 ] };
key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
key <AC02> { [ s, S, ssharp, section ] };
key <AC03> { [ d, D, dstroke, Dstroke ] };
key <AC04> { [ f, F, egrave, Egrave ] };
key <AC05> { [ g, G, eacute, Eacute ] };
key <AC06> { [ h, H, ugrave, Ugrave ] };
key <AC07> { [ j, J, uacute, Uacute ] };
key <AC08> { [ k, K, U0133, U0132 ] };
key <AC09> { [ l, L, oslash, Oslash ] };
key <AC10> { [ semicolon, colon, eacute, periodcentered ] };
key <AC11> { [ apostrophe, quotedbl, agrave, dead_diaeresis] };
key <AD01> { [ q, Q, ae, AE ] };
key <AD02> { [ w, W, aring, Aring ] };
key <AD03> { [ e, E, ediaeresis, Ediaeresis ] };
key <AD04> { [ r, R, yacute, Yacute ] };
key <AD05> { [ t, T, thorn, Thorn ] };
key <AD06> { [ z, Z, ydiaeresis, Ydiaeresis ] };
key <AD07> { [ u, U, udiaeresis, Udiaeresis ] };
key <AD08> { [ i, I, idiaeresis, Idiaeresis ] };
key <AD09> { [ o, O, odiaeresis, Odiaeresis ] };
key <AD10> { [ p, P, oe, OE ] };
key <AD11> { [ bracketleft, braceleft, egrave, U2039 ] };
key <AD12> { [ bracketright, braceright, guillemotright, U203A ] };
key <AE01> { [ 1, exclam, exclamdown, onesuperior ] };
key <AE02> { [ 2, at, ordfeminine, twosuperior ] };
key <AE03> { [ 3, numbersign, masculine, threesuperior ] };
key <AE04> { [ 4, dollar, EuroSign, yen ] };
key <AE05> { [ 5, percent, sterling, cent ] };
key <AE06> { [ 6, asciicircum, dead_circumflex, dead_caron ] };
key <AE07> { [ 7, ampersand, dead_abovering, dead_macron ] };
key <AE08> { [ 8, asterisk, doublelowquotemark, singlelowquotemark ] };
key <AE09> { [ 9, parenleft, leftdoublequotemark, leftsinglequotemark ] };
key <AE10> { [ 0, parenright, rightdoublequotemark, rightsinglequotemark ] };
key <AE11> { [ minus, underscore, copyright, numerosign ] };
key <AE12> { [ equal, plus, multiply, division ] };
key <BKSL> { [ backslash, bar, notsign, brokenbar ] };
key <TLDE> { [ grave, asciitilde, dead_grave, dead_tilde ] };
include "level3(ralt_switch)"
include "level3(lsgt_switch)" // /////////////////////////////////////////////////////////////// LINE BETA
};
答案1
原来是 gnome 键盘快捷键搞错了(gnome 设置:键盘快捷键)。删除后问题解决。
调试过程:我意识到<
仍然被 gnome 快捷方式界面识别(当尝试创建新快捷方式时)。由于 gnome 界面中的一个错误, 未<
显示在主菜单中,因此我不得不逐个检查每个快捷方式以找出罪魁祸首。