我想要左键和右键来做同样的动作。我已经有左键工作,在所有的捷径,等等,但右边的似乎是完全无效的。我已经查看了键盘布局选项,但没有结果。
我在LinuxMint20.2上,使用Mate桌面环境。
增编
xev
的结果如下:
KeyPress event, serial 35, synthetic NO, window 0x5200001,
root 0x7ac, subw 0x5200002, time 416256, (49,43), root:(2600,505),
state 0x10, keycode 105 (keysym 0xff20, Multi_key), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: True
KeyRelease event, serial 38, synthetic NO, window 0x5200001,
root 0x7ac, subw 0x5200002, time 416464, (49,43), root:(2600,505),
state 0x10, keycode 105 (keysym 0xff20, Multi_key), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
xmodmap
的输出如下:
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25)
mod1 Alt_L (0x40), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
发布于 2023-02-21 18:07:06
我找到了一个更稳定和最终的解决方案!我想要的行为(两个ctrl键,左键和右键,具有相同的行为)确实是默认的。
我的问题是键盘设置改变了这个默认设置。
我刚刚找到这个设置,我已经取消选择它,并获得默认(想要的)行为!
设置如下:
键盘首选项,->布局,->选项,->位置,组合键的位置,->,右Ctrl。
下面我报告截图:
发布于 2021-12-31 15:13:57
xmodmap -e "keycode 105 = Control_L NoSymbol Control_L"
发布于 2022-01-10 19:30:41
正如您在注释中确认的那样,下面两个xmodmap
命令完成了这个任务:
xmodmap -e "keycode 105 = Control_R NoSymbol Control_R"
xmodmap -e "add control = Control_R"
它不会在重新启动后停留,所以您只需要将文本保存在~/..Xmodmap文件中的引号中,并使其在启动时执行。
https://unix.stackexchange.com/questions/684540
复制相似问题