Closed mike-fabian closed 1 year ago
Video showing the current behaviour:
Video showing the improved behaviour using the release candidate ibus-typing-booster-2.23.5 from
https://copr.fedorainfracloud.org/coprs/mfabian/ibus-typing-booster/build/6359615/
This is to make it possible to emulate ibus-m17n even more closely.
ibus-m17n commits the preedit when the
Left
is pressed (the arrow-left key) and it passes theLeft
key event through.ibus-typing-booster already has a command
commit
which can be bound to a key but that command just commits and does not pass the key through (which is on purpose).Therefore, binding
commit
toLeft
makes ibus-typing-booster commit onLeft
already just like ibus-m17n does, but the cursor is not moved left.For example, when using hi-itrans with ibus-m17n typing
a
putsअ
in the preedit. Then, typingLeft
commits the preedit so one gets|अ
as the committed result (where|
indicates the cursor position. Compare this to using hi-itrans with ibus-typing-booster whileLeft
is bound tocommit
: Typinga
putsअ
into the preedit. Then typingLeft
commits but the cursor stays on the right side, so the final result isअ|
(where|
again indicates the cursor position).If a new command
commit_and_forward_key
is introduced, one can bindLeft
to that command instead of tocommit
and then ibus-m17n and ibus-typing-booster behave exactly the same when pressingLeft
, commit and move the cursor left.