绑定具有相同密钥代码的密钥,而不会丢失第二个密钥



所以我想把我的一个less(<)键绑定为Shift,因为它就在控制键的上方,而且它就在Ctrl键的上方。但这个键的键码和less相同,当我按","+Shift时就会出现
移位+','xev输出:

KeyRelease event, serial 37, synthetic NO, window 0x1a00001,
root 0xc4, subw 0x0, time 1185360, (-132,-64), root:(462,254),
state 0x1, keycode 59 (keysym 0x3c, less), same_screen YES,
XKeysymToKeycode returns keycode: 94
XLookupString gives 1 bytes: (3c) "<"
XFilterEvent returns: False

'<'按钮xev输出:

KeyRelease event, serial 37, synthetic NO, window 0x1a00001,
root 0xc4, subw 0x0, time 1267856, (-247,180), root:(347,498),
state 0x0, keycode 94 (keysym 0x3c, less), same_screen YES,
XLookupString gives 1 bytes: (3c) "<"
XFilterEvent returns: False
不,它们没有相同的键代码。前者的键代码是59,后者是94。

要使用键代码94作为右移,请使用以下xmodmap脚本:

keycode 94 = Shift_R
add shift = Shift_R

相关内容

最新更新