首页 > 解决方案 > 在 emacs 中未检测到“Control+t”

问题描述

这篇文章是关于键盘组合键 'Control + t' (smallcase 't') 和 emacs。

这个问题是gui版本独有的,在使用终端时不会出现。

我正在使用Wayland

  1. Control+t :光标只是闪烁,没有任何反应。
    • Ch k + Ct(Control+h 和 k 后跟 Control + t):没有显示。
    • Ch k + CSt:有效。显示这个

'C-t (translated from C-S-t) runs the command transpose-chars (found in global-map), which is an interactive compiled Lisp function...'

注释从 CSt 翻译而来

这基本上意味着 Control-t 在过程中的某个地方被吃掉了。

更多信息和好奇的事情-

  1. Control+t 和终端 -

    1. 适用于 Kitty 和白蚁 - 由 wev 检测;Emacs 模式中的 Ct 'tranpose-chars'(zsh 中的 bindkey -e)有效
    2. 在 konsole 中不起作用 - 由 wev 检测到;emacs 模式中的 Ct 'tranpose-chars'(zsh 中的 bindkey -e)不起作用
  2. wev 输出 -


    [14:     wl_keyboard] key: serial: 5101; time: 10021865; key: 66; state: 1 (pressed)
                      sym: Control_L    (65507), utf8: ''

    [14:     wl_keyboard] modifiers: serial: 0; group: 0
                          depressed: 00000004: Control 
                          latched: 00000000
                          locked: 00000000
    
    [14:     wl_keyboard] key: serial: 5103; time: 10022192; key: 28; state: 1 (pressed)
                          sym: t (116), utf8: ''

  1. Emacsclient -t(终端和 tty 上的 emacs 客户端)有效。

C-t runs the command transpose-chars (found in global-map), which is an interactive compiled Lisp function in `simple.el'.

  1. Firefox 和 Chrome 能够检测按键。在https://keyboardchecker.com/上测试

我需要什么?

  1. 我需要了解为什么会这样。
  2. 解决方法同上。

我需要你的帮助。

去做:

  1. 需要在X11中检查相同然后报告。

[更新] 同样的问题在 X11 中仍然存在。同样,Control+Shift+t 有效,但 Control+t 无效

标签: linuxemacskeyboardgtkarchlinux

解决方案


推荐阅读