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

[Web] Detect host OS and use macOS keys on Mac hosts. #75451

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Mar 29, 2023

  • Adds web_android, web_ios, web_linuxbsd, web_macos, and web_windows OS feature tags based on the host platform.
  • Uses runtime checks/overrides for the default keys based on macos and web_macos tags instead of ifdefs.

Fixes #68653

@akien-mga akien-mga modified the milestones: 4.x, 4.1 Apr 5, 2023
@akien-mga akien-mga requested a review from Faless April 5, 2023 11:46
platform/web/os_web.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@Faless Faless left a comment

Choose a reason for hiding this comment

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

LGTM, 🚀 🍎

@akien-mga akien-mga merged commit 5722d6e into godotengine:master Apr 11, 2023
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga changed the title [Web] Detect host OS and use macOS keys on mac hosts. [Web] Detect host OS and use macOS keys on Mac hosts. Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextEdit uses wrong copy/paste shortcuts on Mac in HTML5 build
3 participants