Skip to content

Implement host shortcuts for closing apps and switching windows - #324

Open
korefs wants to merge 4 commits into
XITRIX:masterfrom
korefs:master
Open

Implement host shortcuts for closing apps and switching windows#324
korefs wants to merge 4 commits into
XITRIX:masterfrom
korefs:master

Conversation

@korefs

@korefs korefs commented Aug 10, 2026

Copy link
Copy Markdown

This pull request introduces a new, unified approach for configuring controller button combinations (key combos) for various actions, and adds support for customizable host shortcut combos (such as sending Alt+F4 or Alt+Tab to the host). The changes consolidate and refactor key combo configuration code, improve UI consistency, and update documentation to reflect the new features.

Key Combo Configuration Refactor and Host Shortcut Support

Unified key combo configuration:

  • Introduced key_combo_settings.hpp and key_combo_settings.cpp to centralize logic for displaying and editing key combo settings, replacing duplicated code in both SettingsTab and OptionsTab. Now, all key combo cells and dialogs use shared helper functions for consistent behavior and appearance. [1] [2] [3] [4]

  • Updated ButtonSelectingDialog::create to support an allowDisable parameter, letting users explicitly disable a key combo via the dialog. [1] [2] [3]

  • Removed redundant per-class implementations of button combo display and selection logic, replacing them with calls to the new shared helpers. [1] [2] [3]

Host shortcut support:

  • Added new configurable actions for "Close current app" (Alt+F4) and "Switch window" (Alt+Tab) host shortcuts. These are surfaced as new settings in both the main settings and in-game overlay options. Users can assign or disable button combos for these actions, which are disabled by default. [1] [2] [3] [4]

Documentation and guidelines:

  • Updated README.md to document the new host shortcut features and their configuration.
  • Added AGENTS.md with repository structure, coding style, and contribution guidelines for improved project onboarding and consistency.

These changes make key combo configuration more robust, easier to maintain, and enable new functionality for host shortcuts.

korefs added 4 commits August 8, 2026 22:48
- Added functionality to define key combinations for host shortcuts (Alt+F4 to close the current app and Alt+Tab to switch windows).
- Introduced a new KeyComboAction enum to manage different key combinations.
- Created a dialog for setting up key combinations, including conflict detection.
- Updated settings management to handle key combo options and conflicts.
- Refactored button selection logic in the settings and in-game overlay views to utilize the new key combo system.
- Enhanced localization files to include new strings for host shortcuts.
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