fix(web): synchronize iOS keyboard edits (#830)

Keep one native-input owner per iOS terminal and reconcile keyboard edits without duplicate producers.
Preserve session-bound input ordering, local-echo Unicode deletion, and visual caret geometry.
Cover device event sequences and lifecycle handoffs; remove obsolete helpers and source-text-only regression tests.

Fixes #830
This commit is contained in:
Hadrien Kerlero committed 2026-11-20 20:13:30 +01:00
1 parent 5548c17c4a
commit c4b382b727
39 files changed
+5292 -824

No files matched your search

+3 -1
View File
@@ -297,7 +297,9 @@ describe('xterm key handlers swallow a chord that applies', () => {
const src = read('terminal-ui.js');
const handler = src.slice(src.indexOf('this.terminal.attachCustomKeyEventHandler((ev) => {'));
const gate = handler.indexOf('if (this.tileShortcutFor?.(ev)) return false;');
const enter = handler.indexOf("if (ev.key === 'Enter' && (ev.shiftKey || ev.ctrlKey)) {");
// Prefix only: the gate also carries an iOS keyCode guard (#830), so an iOS
// suggestion word "Enter" with Shift held is text, not a Shift+Enter chord.
const enter = handler.indexOf("if (ev.key === 'Enter' && (ev.shiftKey || ev.ctrlKey)");
expect(gate).toBeGreaterThan(0);
expect(gate).toBeLessThan(enter);
});