Replies: 2 comments 4 replies
-
|
Thank you for the detailed report. So far this doesn't look to be something we can fix in the Mozc side, but if someone happens to find the root cause then figure out how to fix this in the Mozc side without causing any side effect, we are happy to review pull requests. I've converted this to discussion so that other contributors can continue posting their findings and/or new information. For those who decide to try to look into this issue, here are my suggestions:
Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
ありがとうございます! AIにコードを修正させてみたところ、以下変更をしました。 bool MozcEngine::UpdateDeletionRange(IbusEngineWrapper *engine,
const commands::Output &output) {
+ if (!output.consumed()) {
+ return true;
+ }
if (output.has_deletion_range() && output.deletion_range().offset() < 0 &&
output.deletion_range().offset() + output.deletion_range().length() >=
0) {
engine->DeleteSurroundingText(output.deletion_range().offset(),
output.deletion_range().length());
}
return true;
}上記をビルドして私の環境で試したところ、事象が解消しました!
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
掲題のとおり
Steps to reproduce
バージョンは後述
IBusに設定し、再起動このとき、以下をしない
Ctrl + A,Shift + ←,Shift + HOMEなどExpected behavior
文字が消えずに正しく選択される
Actual behavior
選択した文字が消える
Ctrl + Aで全選択した場合、すべての文字が消えるShift + ←でカーソルの左の1文字を選択した場合、その文字が消える続けて
Shift + ←を押すと、残りの文字は正しく選択できるShift + HOMEでカーソルの左の全文字を選択した場合、その文字が消えるScreenshots
Ctrl + A: 問題なく全選択されるCtrl + A: 全削除されるCtrl + ←: 「ご」だけ削除されるCtrl + ←: 以降は正しく選択されるCtrl + A: 問題なく全選択されるScreencast.from.2025-11-20.14-17-01.webm
Version or commit-id
Mozc-2.32.5994.102+24.11.oss
Environment
Investigations
Additional context
本事象はChromeによって表示されたテキストボックス上で発生しており、
URLバーへの入力やブックマークの編集などでは発生しなかった。
AIによる見解
※私はC++, linux, IME, iBus, mozcに詳しくないので下記見解が正しそうか自己検証できていませんが、参考までに記載します 🙇
Beta Was this translation helpful? Give feedback.
All reactions