We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
/usr/bin/xev
KeyPress event, serial 45, synthetic NO, window 0x3600001, root 0x845, subw 0x0, time 703078, (106,99), root:(156,209), state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES, " XLookupString gives 1 bytes: (0d) " " XmbLookupString gives 1 bytes: (0d) " XFilterEvent returns: False
KeyPress event, serial 47, synthetic NO, window 0x3600001, root 0x845, subw 0x0, time 746296, (596,1023), root:(646,1133), state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES, " XLookupString gives 1 bytes: (0d) " " XmbLookupString gives 1 bytes: (0d) " XFilterEvent returns: False
KeyPress event, serial 47, synthetic NO, window 0x3600001, root 0x845, subw 0x0, time 769660, (408,407), root:(458,517), state 0x10, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES, " XLookupString gives 1 bytes: (0d) " " XmbLookupString gives 1 bytes: (0d) " XFilterEvent returns: False
fcitx
The text was updated successfully, but these errors were encountered:
证实确实有这个问题。经分析,这是由于ENTER键从主板传过来的扫描码是0x9C,这个扫描码默认映射KP_Enter键,小米工程师太不讲究了。至于受影响的软件,我这kubuntu+fcitx5没有受到影响。
想变更这个默认行为的话,可以解压文件90-kpenter2enter-keyboard.hwdb.zip到/etc/udev/hwdb.d/90-kpenter2enter-keyboard.hwdb来将kpenter键映射为enter键盘。放置文件后运行systemd-hwdb update更新hwdb. 接着重启或者运行命令udevadm trigger /dev/input/event2使其生效
systemd-hwdb update
udevadm trigger /dev/input/event2
如果你的机型不是RedmiBookPro152022,运行以下命令查看具体型号。型号不对则文件不生效 evemu-describe /dev/input/event2 |grep DMI # /dev/input/event2 应当为AT Translated Set 2 keyboard 参考https://wiki.archlinux.org/title/map_scancodes_to_keycod
evemu-describe /dev/input/event2 |grep DMI # /dev/input/event2 应当为AT Translated Set 2 keyboard
Sorry, something went wrong.
我刚才试了下 在win11中 也是这情况
No branches or pull requests
演示
/usr/bin/xev
笔记本
主键盘区
外接键盘
主键盘区
小键盘区
影响软件
fcitx
在中文并且候选框有字的时候 按回车会触发搜索The text was updated successfully, but these errors were encountered: