You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Escape does not exit preview annotation mode until you click inside the page #32970
The only Escape handler for annotation mode is the guest page's window keydown listener (apps/desktop/src/preview/PickPreload.ts:1742, handled at :1637). The host app has no Escape handling while a pick is active.
When annotation starts, Manager.ts:2268 calls wc.focus() on the guest webContents, but nothing in the page takes focus. Right after the toolbar click, keys still go to the app chrome, so Escape never reaches the listener.
PDFs already work around this: PickPreload.ts:856-865 adds a focusable inputLayer "for Escape and the tool keys". Regular pages get no equivalent, so the V/R/D/E tool keys have the same first-click problem.
Possible fix: focus an overlay element on regular pages the way the PDF path does, or have the host handle Escape while a pick is active and send the existing CANCEL_PICK_CHANNEL.
Activity