Skip to content

fix(input): resolve macOS group binding issue and SagePatch snap conflict#164

Merged
fbraz3 merged 3 commits into
mainfrom
fix/group-binding
Jun 17, 2026
Merged

fix(input): resolve macOS group binding issue and SagePatch snap conflict#164
fbraz3 merged 3 commits into
mainfrom
fix/group-binding

Conversation

@fbraz3

@fbraz3 fbraz3 commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Description

Resolves the group binding issue on macOS where standard shortcuts like Command + [1..9] were not functioning for group selection/binding, and resolves a window-snapping shortcut collision with SagePatch.

Closes #161

Changes

  • macOS Keyboard Modifier Mapping: Mapped SDL_SCANCODE_LGUI and SDL_SCANCODE_RGUI (Command keys) to KEY_LCTRL and KEY_RCTRL internally in both base game and Zero Hour keyboard device drivers.
  • SagePatch Conflict Resolution: Updated the SagePatch snapping logic to use the Command modifier on macOS and Control on other platforms, and added a mandatory check for the Alt (Option/Alt) key. Window snapping now requires Command + Option + [1..5] on macOS and Control + Alt + [1..5] on Linux, preventing it from intercepting standard group binding shortcuts.

@fbraz3

fbraz3 commented Jun 17, 2026

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

@fbraz3 fbraz3 closed this Jun 17, 2026
@fbraz3 fbraz3 reopened this Jun 17, 2026
@fbraz3 fbraz3 merged commit 341b4c0 into main Jun 17, 2026
8 checks passed
@fbraz3 fbraz3 deleted the fix/group-binding branch June 17, 2026 20:44
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.

units binding doesn't work

1 participant