From 8dc70a5f1d9b6f0876a6fadc17a713b70de2228e Mon Sep 17 00:00:00 2001 From: Teigen Date: Wed, 17 Jun 2026 19:53:33 +0800 Subject: [PATCH] fix(mobile): restore /compact button to keyboard accessory bar Reverts eb83148 which removed the /compact button from both simple and extended accessory bar modes. Restores double-tap confirmation and refocus guard for the compact action. --- src/web/public/keyboard-accessory.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/web/public/keyboard-accessory.js b/src/web/public/keyboard-accessory.js index 5ac900d6..7c5a81e0 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, paste, Esc, and dismiss. + * keyboard on mobile: arrow up/down, /init, /clear, /compact, paste, Esc, 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) require double-tap confirmation (2s amber state). + * Destructive actions (/clear, /compact) 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). * @@ -58,6 +58,7 @@ const KeyboardAccessoryBar = { +