mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
Hover-first targeting (#74447) made the tab verbs read the hovered zone else the focused one. But ⌘1-9 and ⌃Tab then took that single answer as final: with the pointer over the sidebar, the titlebar, or any non-zone chrome, the resolver returned null and the keys did nothing at all. Turn the resolver into an eligibility ladder — hovered, then focused, then the workspace's zone — where each rung must actually satisfy the verb (a real tab strip for the number keys, a chat strip for ⌃Tab and the ⌘W / ⌘T family) to claim the keystroke. Pointing at nothing now falls through to focus, and a fresh window with no interaction yet falls through to main, so the keys always land somewhere sensible. This also fixes the narrower case the old code shared with ⌘W: hovering a zone that is NOT a tab strip (a lone file tree) used to swallow the key rather than handing it to the next rung. ⌘W / ⌘T already laddered to the workspace, so they keep their behavior and simply share the one resolver again. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||