New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl breaks the ibus-rime and fcitx-rime #240

Closed
qqldd opened this Issue Jan 3, 2019 · 5 comments

Comments

Projects
None yet
2 participants
@qqldd
Copy link

qqldd commented Jan 3, 2019

Since ibus-rime and fcitx-rime both have the same problem. I am guessing this is the librime problem.

librime version: 1.2.9

When in rime mode, type any character with any input method (pinyin, wubi) is okay until I just press ctrl or other ctrl-[x,c,v].

I need to restart fcitx-rime or in ibus to switch to EN and switch back.

Are there any ways to capture the keystroke to begin debugging this?

@lotem

This comment has been minimized.

Copy link
Member

lotem commented Jan 3, 2019

Are there any errors (lines beginning with "E") in /tmp/rime.ibus.INFO ?

You need to compile a debug version of librime in order to log the key strokes.

@qqldd

This comment has been minimized.

Copy link

qqldd commented Jan 4, 2019

Update: I have the caps lock map to ctrl. I find normal ctrl is okay. But caps-ctrl will cause this. ibus-pinyin is okay.

In ibus-rime, if I press caps-ctrl, it breaks. After this, I can press shift to type again. But if I press caps-ctrl, nothing changed.

I use setxkbmap -option ctrl:nocaps to map capslock to ctrl.

I tried another method with xmodmap config:

clear lock
clear control
add control = Caps_Lock Control_L Control_R

and do xmodmap ~/.Xmodmap

It is still the same.

Still debugging.

Also no line begins with E in /tmp/rime.ibus.INFO. Only I...

@qqldd

This comment has been minimized.

Copy link

qqldd commented Jan 4, 2019

A question, I compiled the debug version of librime. Do you have ideas on how to use the librime.so with ibus?

Preferable change ibus config to link to the compiled librime.so.

Or can I simply re-link the /usr/lib/librime.so.1 to compiled librime.so ?

@lotem

This comment has been minimized.

Copy link
Member

lotem commented Jan 5, 2019

By default Caps Lock key toggles Chinese / ASCII mode. That may be the problem. It must have sent a Caps Lock key code or triggered Lock state change.
If you need an extra Control key in Caps Lock position, make sure nothing related to Caps Lock key's behavior is left.

@lotem

This comment has been minimized.

Copy link
Member

lotem commented Jan 5, 2019

You mentioned pressing Shift key could reactivate Chinese mode, that proved it was deactivated as a result of the previous Caps Lock/Control key.
As your custom key map is not a supported use case, I would not consider it a bug on the librime side. I'll leave it to you to find a solution.

@lotem lotem closed this Jan 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment