Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle super+period key combination on macOS #4564

Closed
wants to merge 1 commit into from

Conversation

liby
Copy link
Contributor

@liby liby commented Jan 4, 2025

Description

This PR fixes an issue where super+period key combination was not working properly on macOS.

The performKeyEquivalent method in the macOS implementation was restricting key combinations to only those that included the Control modifier. This meant that other valid key combinations like super+period were being blocked before they could be properly processed.

Solution

Removed the Control modifier check in performKeyEquivalent, allowing other key combinations like super+period to be processed correctly. The key combination is now explicitly handled in the switch statement, which provides better control over which combinations are allowed.

demo.mov

Fixes #4540

Previously on macOS, `super+period` key combination was being blocked
in `performKeyEquivalent` due to a control modifier check. This change
removes that restriction to allow `super+period` and similar key
combinations to be properly handled.

Fixes ghostty-org#4540
@mitchellh
Copy link
Contributor

This works but I do have a much more robust solution in the works that solves a bunch of issues at once (since they all stem from similar performKeyEquivalent handling). So, I'll keep this PR open in case that doesn't pan out but lets wait for that...

@mitchellh
Copy link
Contributor

Superceded by #4591

@mitchellh mitchellh closed this Jan 4, 2025
@liby liby deleted the fix/super-period-key-handling branch January 5, 2025 01:57
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.

macOS: super+period doesn't reach Surface keyCallback
2 participants