{Escape} will clear all committed text and reset current state to no composing if input codes exist but user selects nothing.
But, if there are input codes with selected cands, {Escape} will clear the codes and remain current state as composing, in which case, echo_translator will return a null cand.
To Reproduce
Steps to reproduce the bug:
enable echo_translator
send nihao
select ni -> 你, then the committed code will be 你hao
{Escape} will always clear all commited texts by default.
or
echo_translator will not echo a null cand
Even if retaining committed candidate is an intended behaviour, it's quite comfusing that echo_translator returning a empty candidate. There is only a lable 1 in the weasel window as the above gif shows.
is accepted.
Flavor(please complete the following information):
Select your flavor:
Describe the bug
{Escape} will clear all committed text and reset current state to no composing if input codes exist but user selects nothing.
But, if there are input codes with selected cands, {Escape} will clear the codes and remain current state as composing, in which case, echo_translator will return a null cand.
To Reproduce Steps to reproduce the bug:
nihao
ni
->你
, then the committed code will be你hao
video:
20240120202731.webm
Expected behavior
Either
{Escape} will always clear all commited texts by default.
or
echo_translator will not echo a null cand
Even if retaining committed candidate is an intended behaviour, it's quite comfusing that echo_translator returning a empty candidate. There is only a lable
1
in the weasel window as the above gif shows.is accepted.
Flavor(please complete the following information): Select your flavor:
Package: