Skip to content

Add native shortcut editor with popup capture and immediate saves - #285

Draft
Guffawaffle wants to merge 55 commits into
STFC-Mod:devfrom
Guffawaffle:feature/mod-shortcut-settings
Draft

Guffawaffle wants to merge 55 commits into
STFC-Mod:devfrom
Guffawaffle:feature/mod-shortcut-settings

Conversation

@Guffawaffle

@Guffawaffle Guffawaffle commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Adds Settings → Mod Settings → Shortcuts, with registered actions grouped by purpose. Add and Change open a capture popup with overlap warnings and Confirm/Use anyway. Escape closes only the popup; focus loss or page departure discards the draft. Input stays owned through key release, and Enter remains bindable while recording.

Remove and Restore save immediately. An amber Undo notice restores the exact previous list unless a newer edit superseded it. Alternative bindings, aliases, comments and unrelated settings are preserved; failures use the shared settings notice. Current documentation reflects popup confirmation and immediate list operations, with no page-level Apply step.

Depends on #269 and corrected #282. Following #313, native settings, runtime persistence, Forbidden Tech and fleet-label installation inherit their independent patch switches and registry ownership. Shortcut bindings and keyboard_layout_mode remain feature configuration. The popup uses the existing frame dispatcher; no additional ScreenManager detour is added. The native adapter supports Windows x64 and macOS, with layout-aware capture on Windows and physical keys on macOS.

Validation: Windows release build, existing shortcut/settings and full persistence fixtures, keyboard mapping/chord fixtures and all example TOMLs pass. Three independent reviews cover the complete candidate. Earlier downstream popup/Undo smoke is historical; exact-candidate native popup, input-release/pooling and macOS runtime qualification remain open. CI starts on publication without waiting for results.

@Guffawaffle Guffawaffle changed the title Add native shortcut editor with automatic action discovery Add native shortcut editor with popup capture and immediate saves Sep 22, 2026
@Guffawaffle
Guffawaffle force-pushed the feature/mod-shortcut-settings branch from 0806e20 to 0d08142 Compare September 28, 2026 00:00
…ml-editor

# Conflicts:
#	docs/config-save.md
…gs-navigation

# Conflicts:
#	example_community_patch_settings_en.toml
#	mods/src/config.h
#	mods/src/defaultconfig.h
#	mods/src/patches/patches.cc
…ngs-controls

# Conflicts:
#	docs/MOD_SETTINGS_NAVIGATION.md
#	mods/src/config.cc
#	mods/src/config.h
#	mods/src/patches/parts/forbidden_tech_confirmation.cc
#	mods/src/patches/parts/hotkeys.cc
#	mods/src/patches/patches.cc
# Conflicts:
#	mods/src/patches/parts/mod_confirmation_settings.cc
# Conflicts:
#	mods/src/settings/native/action_widgets.cc
# Conflicts:
#	mods/src/settings/native/action_widgets.cc
# Conflicts:
#	example_community_patch_settings_en.toml
#	mods/src/config.h
#	mods/src/defaultconfig.h
#	mods/src/patches/patches.cc
# Conflicts:
#	mods/src/config.cc
#	mods/src/config.h
#	mods/src/defaultconfig.h
#	mods/src/patches/patches.cc
# Conflicts:
#	mods/src/patches/patches.cc
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.

1 participant