fcitx / fcitx5-rime

223 stars 22 forks source link

xmodmap映射有时出现问题 #25

Closed EzekielDaun closed 3 years ago

EzekielDaun commented 3 years ago

manjaro-KDE下,把capslock+ESDF映射为方向键,方向键本身不变. ~/.Xmodmap:

! make Capslock the "Mode_switch" key
clear Lock

! All Mod must be cleared
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5

! clearning current Caps_Lock assigment and assigning it new one
keycode 66 =
keycode 66 = Mode_switch Caps_Lock

! setting all the modification keys
add Mod1 = Alt_L Alt_R Meta_L
add Mod2 = Num_Lock
add Mod3 = Mode_switch
add Mod4 = Super_L Super_R Hyper_R

! Clear must be done before configuring it
keycode 39 =
keycode 40 =
keycode 41 =
keycode 26 =

keycode 25 =
keycode 27 =

! Configuration (first column normal type, second with shift and second with Mod_switch)
keycode 39 = s S Left
keycode 40 = d D Down
keycode 41 = f F Right
keycode 26 = e E Up

keycode 25 = w W BackSpace
keycode 27 = r R Delete

rime输入法下无论中文英文,在chrome和vscode中,方向键会变成esdf,按capslock+方向键才是上下左右.ctrl+space切成zh键盘后问题消失. 其他软件目前没发现这个问题.Ubuntu 20.04下的ibus-rime也没有这个问题

wengxt commented 3 years ago

不能重现,我觉得你可能有什么不一样的配置。

贴一下 ~/.config/fcitx5/profile

EzekielDaun commented 3 years ago

~/.config/fcitx5/profile

[Groups/0]
# Group Name
Name=默认
# Layout
Default Layout=cn
# Default Input Method
DefaultIM=rime

[Groups/0/Items/0]
# Name
Name=keyboard-cn
# Layout
Layout=

[Groups/0/Items/1]
# Name
Name=rime
# Layout
Layout=

[GroupOrder]
0=默认

或许我用的是xmodmap而非xkb?