Echo typed characters in Wine edit fields

This commit is contained in:
deedra committed 2026-10-12 15:31:00 -07:00
1 parent d9aa40e16c
commit a002c4cc1e
7 files changed
+154 -22

No files matched your search

+15 -8
View File
@@ -193,8 +193,8 @@ document area, MUSHclient's command field and read-only output notepad, and
use visible sibling labels immediately to their left, even when the labels
were created after the fields. Protected fields report their label and
password role without forwarding their contents.
It reports the current line on focus and menu return, characters
and words on horizontal navigation, lines on vertical/page/document-boundary
It reports accepted typed characters, the current line on focus and menu return,
characters and words on horizontal navigation, lines on vertical/page/document-boundary
navigation, changed selections, and Backspace/Delete/Cut feedback. Password
contents are excluded, and read-only edits do not report unsuccessful deletions.
Undo refreshes the text snapshot used by subsequent navigation. It can attach to
@@ -212,11 +212,18 @@ selection feedback and Ctrl+Backspace/Delete feedback are not implemented.
Backspace reports only the removed text, such as `t`. Delete and Cut retain
their deletion feedback, such as `t deleted`.
Standard Edit typing sends each accepted character as an ordered editor action,
including repeated letters, spaces, tabs, line breaks and Unicode surrogate
pairs. Typing over selected text also reports the inserted character. Password
fields, background controls and rejected input remain silent. Paste and
programmatic text changes do not generate character echo. The reader presents
these through the same feedback path as caret navigation and Backspace.
Editor actions use `PresentAccessibleEvent` with event type `text`; actual focus
uses `focus`. Cthulhu-Go must include the corresponding editor-event support so
rapid actions and repeated characters bypass focus coalescing. Selection
offsets and the action kind travel in the otherwise non-spoken `states` field
for debug diagnostics. Standard edits use UTF-16 offsets; Scintilla marks its
offsets and the action kind (8 for typed insertion) travel in the otherwise
non-spoken `states` field for debug diagnostics. Standard edits use UTF-16 offsets; Scintilla marks its
encoded byte offsets with `offset_unit=byte`. Older readers that only accept
focus/value/selection events still receive focus and menus, but need updating
for editor actions.
@@ -262,10 +269,10 @@ label captions decode keyboard mnemonics and escaped `&&`; static labels with
These hooks provide editing feedback. Independent review-cursor commands use
the optional flat-review protocol described below; Say All and native braille
routing remain unsupported. Typing echo
remains the reader's responsibility. RichEdit and 32-bit Scintilla hooks are not
covered. Reports are limited to 1023 UTF-16 units; documents over one million
units use line feedback without full selection/deletion snapshots.
routing remain unsupported. Word echo and typing echo in Scintilla
remain outside this helper's current support. RichEdit and 32-bit Scintilla hooks
are not covered. Reports are limited to 1023 UTF-16 units; documents over one million
units retain typing and line feedback without full selection/deletion snapshots.
Scintilla reads at most 4096 encoded bytes per report, then limits output to
1023 UTF-16 units without splitting surrogate pairs. Wrapped Scintilla lines
report the underlying document line.