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

Make Ghostty aware of left/right modifier keys #244

Merged
merged 5 commits into from
Aug 7, 2023
Merged

Conversation

mitchellh
Copy link
Contributor

@mitchellh mitchellh commented Aug 7, 2023

Related to #218
Related to #242

This makes the core Ghostty API aware of left/right modifier keys and able to distinguish between them. Only macOS is able to distinguish, every other platform marks "both" as being pressed.

On macOS, this also allows keybindings to target a specific directional modifier. For example, keybind = left_shift+w=close_window is now valid. On platforms that don't support directional modifiers, this is equivalent to just using shift.

This issue is primarily on the way so that we can enable a option_as_alt configuration for macOS as noted in #218 and allow people to choose only one option key to use as alt.

There is still a long road to making keyboard layout handling not garbage. This is just a stone in the path...

@mitchellh mitchellh changed the title Make Ghostty aware or left/right modifier keys Make Ghostty aware of left/right modifier keys Aug 7, 2023
@mitchellh mitchellh merged commit c139279 into main Aug 7, 2023
@mitchellh mitchellh deleted the alt-as-esc branch August 7, 2023 23:01
mitchellh added a commit that referenced this pull request Aug 8, 2023
This reverts commit c139279, reversing
changes made to 4ed2104.

We do want to do this but this broke bindings.
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