From 451a0557576aca8f92db64aa5ab4fc13aa640461 Mon Sep 17 00:00:00 2001 From: Mortdecai Date: Fri, 24 Apr 2026 19:50:05 -0400 Subject: [PATCH] docs: document mobile autocomplete-disable fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Explains why setting autocomplete/autocorrect/autocapitalize/spellcheck attributes on xterm.js's hidden helper textarea is needed (and why a MutationObserver) for mobile keyboards to stop corrupting per-keystroke input. Still load-bearing alongside the new compose bar — covers chord and arrow keys typed outside the compose input. --- AUTOCOMPLETE_FIX.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 AUTOCOMPLETE_FIX.md diff --git a/AUTOCOMPLETE_FIX.md b/AUTOCOMPLETE_FIX.md new file mode 100644 index 0000000..59c0c8a --- /dev/null +++ b/AUTOCOMPLETE_FIX.md @@ -0,0 +1,40 @@ +# Mobile Autocomplete Fix + +**Date:** 2026-03-28 +**File changed:** `static/toolbar.js` + +## The Problem + +On mobile, typing in the terminal caused glitchy re-typing of characters. For example, typing `git sta` would suddenly delete and re-insert text, producing garbled input like `git stagit sta`. + +## Root Cause + +xterm.js captures keyboard input through a hidden `