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 ctrl+x/c/v/s work on linux and macOS #729

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

vincentfretin
Copy link
Contributor

We also use ctrl key on Ubuntu, not just Windows ;)

Those are the shortcuts to cut, copy, paste an entity and focus the search input.

@vincentfretin
Copy link
Contributor Author

I need this PR to be merged before doing the undo position/rotation/scale PR @dmarcos

@vincentfretin vincentfretin changed the title Make ctrl+x/c/v/s work on linux Make ctrl+x/c/v/s work on linux and macOS Jun 28, 2024
@vincentfretin
Copy link
Contributor Author

Actually it didn't work either on macOS because of metaKey check in shouldCaptureKeyEvent.
So it only worked on Windows previously.

I checked with @kfarr for macOS for all the shortcuts here, we don't see why there was the metaKey check in shouldCaptureKeyEvent here. We just know the implementation was initially copied from AFRAME.utils.shouldCaptureKeyEvent that is used mainly for wasd-controls, but even for this I'm not sure why we need to check for metaKey (cmd key on macOS).

@dmarcos
Copy link
Member

dmarcos commented Jul 1, 2024

Thanks!

@dmarcos dmarcos merged commit b792e91 into aframevr:master Jul 1, 2024
@vincentfretin vincentfretin deleted the fix-shortcuts-linux branch July 1, 2024 15:04
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.

2 participants