Skip to content

Add TAB-hold shortcuts menu#389

Open
stephenkirk wants to merge 5 commits intomainfrom
claude/add-shortcuts-menu-tab-vahke
Open

Add TAB-hold shortcuts menu#389
stephenkirk wants to merge 5 commits intomainfrom
claude/add-shortcuts-menu-tab-vahke

Conversation

@stephenkirk
Copy link
Copy Markdown
Member

@stephenkirk stephenkirk commented Apr 7, 2026

Summary

  • Hold TAB to open a context-aware shortcut overlay for common multiplayer actions (join/create/leave lobby, copy/view code, choose deck/stake, reconnect)
  • Shortcuts adapt to current state: in-lobby vs not, connected vs disconnected
  • Menu only appears on main menu — no in-game shortcuts
  • Deck picker shortcut respects existing enable logic (host or different-decks mode)
  • Reuses existing localization keys where possible

Test plan

  • Hold TAB on main menu while disconnected — should show Reconnect
  • Hold TAB on main menu while connected, no lobby — should show Join/Create options
  • Hold TAB on main menu while in lobby — should show Copy/View Code, Choose Deck (if allowed), Leave
  • Hold TAB during a run — menu should not appear
  • Release TAB or press a shortcut key — menu should dismiss
  • Verify Choose Deck shortcut is hidden when guest + different_decks is off

claude and others added 5 commits March 24, 2026 08:51
Pressing TAB shows a context-aware overlay with keyboard shortcuts:
- Main menu (connected): V to join from clipboard, J to join lobby, C to create lobby
- Main menu (in lobby): C to copy code, V to view code, L to leave
- Main menu (disconnected): R to reconnect
- In-game (in lobby): C to copy code, I for lobby info

Shortcuts can be triggered by pressing the key while TAB is held,
or by clicking the shortcut row. Menu dismisses on TAB release.

https://claude.ai/code/session_014FaSJ5FwuXMfcUmM5Hiy81
…shortcut

- Replace duplicate b_sc_* keys with existing b_copy_code, b_view_code,
  b_join_lobby, b_create_lobby, b_leave_lobby, b_reconnect, b_lobby_info
- Re-add View Code shortcut using existing b_view_code
- Add Choose Deck/Stake shortcut (D key), gated on host or different_decks
- Only new loc keys: k_sc_title, k_sc_hint, b_sc_choose_deck
lobby_choose_deck passes its argument to vanilla setup_run which
indexes e.config. Pass a stub UI element table to avoid nil index.
No need for lobby code or lobby info shortcuts during gameplay.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants