Skip to content

Bring OptionAsAlt back for macOS#2887

Merged
kchibisov merged 1 commit intorust-windowing:masterfrom
kchibisov:option-as-alt
Jun 20, 2023
Merged

Bring OptionAsAlt back for macOS#2887
kchibisov merged 1 commit intorust-windowing:masterfrom
kchibisov:option-as-alt

Conversation

@kchibisov
Copy link
Copy Markdown
Member

The correct handling of this setting requires to change the events we're getting from the macOS on the fly and call interpretKeyEvents, which could affect handling of the next events, meaning that we can't provide them on KeyEvent.

--

This is basically old option we had with winit 0.28.0.

cc @fredizzimo if you want to try it with neovide.

@fredizzimo
Copy link
Copy Markdown

@kchibisov. I think we will try this after it is merged to master. And probably also after the PR I'm working on in Neovide is merged to avoid potentially breaking stuff that has already been tested there.

I also need to rely on other people doing the testing, since I don't own a Mac.

Copy link
Copy Markdown
Member

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

Only gave it a cursory review since I assume you've basically just copied the old implementation. Looks fine

The correct handling of this setting requires to change the events
we're getting from the macOS on the fly and call `interpretKeyEvents`,
which could affect handling of the next events, meaning that we can't
provide them on `KeyEvent`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants