Skip to content

Fix hotkeys in macOS#91

Open
pedrogxv wants to merge 14 commits into
rtr46:mainfrom
pedrogxv:macOS-hotkeys
Open

Fix hotkeys in macOS#91
pedrogxv wants to merge 14 commits into
rtr46:mainfrom
pedrogxv:macOS-hotkeys

Conversation

@pedrogxv

@pedrogxv pedrogxv commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Modifications

  • Updated keyboard controller for macOS.
  • Updated and improved the settings dialog GUI for the apple platform.

Motivation

Hello, this PR was created to address a bug in the mac application where we could not use others keybinds, even when changing the settings of the hotkey to use "alt" or "cmd".

The second problem was that the front-end of the GUI was not handling the available keys in the apple keyboard (option, command and etc), this was also a target in this PR and now it must be solved.

I can provide more information of the bug by recording some tests before and after if you may find necessary.

I also found positive to do a little code cleaning in the gui section, taking this new approach for mac keyboards in consideration.

That's it, thanks.

image

Copilot AI review requested due to automatic review settings April 7, 2026 22:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix macOS hotkey detection and make the Settings dialog present macOS-appropriate modifier key labels while keeping the stored hotkey format consistent for the input layer.

Changes:

  • Updated macOS hotkey detection to use Quartz global HID modifier flags and normalized modifier parsing.
  • Updated the Settings dialog hotkey selector to use platform-specific labels/userData pairs and normalize persisted hotkey values.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/meikipop/gui/settings_dialog.py Adds hotkey normalization and macOS-specific hotkey option labels in the settings UI; persists normalized hotkey values.
src/meikipop/gui/input.py Refactors macOS modifier parsing and hotkey detection to use Quartz modifier flags for cross-app detection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/meikipop/gui/settings_dialog.py
Comment thread src/meikipop/gui/settings_dialog.py
Comment thread src/meikipop/gui/input.py
Comment thread src/meikipop/gui/input.py
@rtr46

rtr46 commented Apr 8, 2026

Copy link
Copy Markdown
Owner

thanks for the PR. i will have a look but it may take a few weeks. i'd first like to wrap up the wayland merge request if possible, do a v2 release and then let some time pass to see if anyone is reporting issues before piling on more changes.

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.

3 participants