hephaestus/crates/heph-quickadd
Erich Blume 470ef1de0e
All checks were successful
Build / validate (pull_request) Successful in 5m52s
fix(quickadd): return focus to the previous app when the popover hides
The global ⌘' quick-add overlay is a borderless, transparent, always-on-top
accessory window that winit hides with `Visible(false)`. That orders the window
out visually but leaves heph-quickadd the *active* application — so after a
capture (or Esc / toggle) keyboard focus never returns to the app the user was
in, and the lingering overlay can keep intercepting clicks where it used to sit.

Hide at the application level instead via `NSApplication.hide:`, which fully
orders our windows out and activates the next app in line (the previously
focused one). On re-show, `unhide:` clears that hidden flag before the existing
viewport `Focus` command makes the field key again. Both are macOS-only no-ops
elsewhere, wired through new `app_yield_focus`/`app_take_focus` helpers backed by
objc2 / objc2-app-kit (unified to the 0.6/0.3 line global-hotkey already pulls).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 20:08:07 -07:00
..
src fix(quickadd): return focus to the previous app when the popover hides 2026-06-08 20:08:07 -07:00
Cargo.toml fix(quickadd): return focus to the previous app when the popover hides 2026-06-08 20:08:07 -07:00