feat(menu): Esc can open the Insert menu (Menu shortcut "Insert, F1 or Esc") #1998
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1998
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/menu-esc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On PC, Esc is the key that opens a game's menu, but Hookshot's Insert menu opens only on Insert or F1 — and many laptops and
compact keyboards have no Insert key. This adds Esc as an opt-in choice of the Menu shortcut row.
What changed
menu_shortcut=2). On a closed menu Esc opens it; whileit is open Esc still goes back a page or closes it, as before. The default stays Insert or F1.
bound to Esc, so nothing in play changes.
and the camera lost it after the menu closed.
host/display.candhost/posix/display_sdl.cnow note that Esc let acapture go (
esc_had_capture), and closing the menu brings the capture back without a click.test_menu_keys.pycovers the three shortcut choices and Esc opening a closed menu without also going back a page inthe same press;
display_pointer_test.cppandscreensaver_test.cdeclareesc_had_capturebeside the window statics theystand in for.
Testing
after it closes, the camera has the mouse back without a click; Insert and F1 behave as before.
tests/run_all.pyon Windows: 322 of 324 pass;test_precompile_compute_guardandtest_recorder_syncfail the same onuntouched main here.
fc375e9with this change; this branch is the same commit rebased onto9447e1d.Not tested: Linux (the SDL path builds the same note,
display_sdl.c, but was not run), a gamepad-only setup, AMD/Intel.Screenshots

The Controls tab with Menu shortcut on "Insert, F1 or Esc" (5120x2160, frame generation 2x on: 110 fps shown, 55 of the game's).
🤖 Generated with Claude Code