禁用键码序列的 unicode 解释

禁用键码序列的 unicode 解释

当输入字符组合时^2(一个接一个,而不是同时)我没有得到这两个字符,而是 Unicode 点U+00B2,又名²^4 => U+2074=>等也是如此。我的区域设置设置为英语,同时使用德语键盘。我想保留正常的字符行为,例如直接键入 ä,ö,ü,ß,但禁用多键代码序列的解释。

我使用 GNOME 3.34.4 运行 Fedora 31(工作站版)。

有人如何禁用这种解释吗?

xev编辑:输入^,时的输出2

KeyPress event, serial 34, synthetic NO, window 0x800001,
    root 0x2cd, subw 0x0, time 33006949, (941,-29), root:(1091,183),
    state 0x10, keycode 49 (keysym 0xfe52, dead_circumflex), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyRelease event, serial 37, synthetic NO, window 0x800001,
    root 0x2cd, subw 0x0, time 33007045, (941,-29), root:(1091,183),
    state 0x10, keycode 49 (keysym 0xfe52, dead_circumflex), same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x800001,
    root 0x2cd, subw 0x0, time 33007677, (941,-29), root:(1091,183),
    state 0x10, keycode 11 (keysym 0x32, 2), same_screen YES,
    XLookupString gives 1 bytes: (32) "2"
    XmbLookupString gives 1 bytes: (32) "2"
    XFilterEvent returns: True

KeyPress event, serial 37, synthetic NO, window 0x800001,
    root 0x2cd, subw 0x0, time 33007677, (941,-29), root:(1091,183),
    state 0x10, keycode 0 (keysym 0xb2, twosuperior), same_screen YES,
    XKeysymToKeycode returns keycode: 11
    XLookupString gives 0 bytes: 
    XmbLookupString gives 2 bytes: (c2 b2) "²"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x800001,
    root 0x2cd, subw 0x0, time 33007781, (941,-29), root:(1091,183),
    state 0x10, keycode 11 (keysym 0x32, 2), same_screen YES,
    XLookupString gives 1 bytes: (32) "2"
    XFilterEvent returns: False

答案1

这可以解决问题:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de+nodeadkeys')]"

'de'那之前,缺少这个+nodeadkeys部分。

相关内容