From eb831487a0db38130e1e220cf9fb0ae9ac9c1b3a Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 1 Jun 2026 20:00:38 +0200 Subject: [PATCH] feat(web): remove /compact button from mobile keyboard accessory bar Drops /compact from both the simple and extended accessory-bar layouts, the action handler (case folded back to clear-only), the refocus guard, and the JSDoc. /clear retains its double-tap confirmation. Verified on a touch-emulated viewport: neither layout renders a compact action. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/web/public/keyboard-accessory.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/web/public/keyboard-accessory.js b/src/web/public/keyboard-accessory.js index d4132346..804c4ef3 100644 --- a/src/web/public/keyboard-accessory.js +++ b/src/web/public/keyboard-accessory.js @@ -4,10 +4,10 @@ * Defines two exports: * * - KeyboardAccessoryBar (singleton object) — Quick action buttons shown above the virtual - * keyboard on mobile: arrow up/down, /init, /clear, /compact, paste, and dismiss. + * keyboard on mobile: arrow up/down, /init, /clear, paste, and dismiss. * The paste button opens a dialog that handles both text paste and image attach * (native picker + best-effort image paste, routed through app._uploadAndInsertImages). - * Destructive actions (/clear, /compact) require double-tap confirmation (2s amber state). + * Destructive actions (/clear) require double-tap confirmation (2s amber state). * Commands are sent as text + Enter separately for Ink compatibility. * Only initializes on touch devices (MobileDetection.isTouchDevice guard). * @@ -51,7 +51,6 @@ const KeyboardAccessoryBar = { -