Add chatting$getModifierKey() in GUIChatMixin to allow for OS-specific text
Change COPY_TOOLTIP in GUIChatMixin to use the new function
Depending on the operating system, this will show the user the proper key to press. This was prompted by a user asking me where the ALT key was on their keyboard.
This does not need any logic change to actual keypress detection, as that already works. It is solely a visual change to the chat copy hover message.
Related Issue(s)
No open GitHub issues are relevant.
How to test
Launch the game, and hover over a chat message. Verify the text is appropriate to the operating system. If on macOS, it will be "OPTION". Otherwise, it will be "ALT".
macOS verification:
Release Notes
Change modifier key text in the chat copy hover message to correspond to the operating system
Description
Add chatting$getModifierKey() in GUIChatMixin to allow for OS-specific text Change COPY_TOOLTIP in GUIChatMixin to use the new function
Depending on the operating system, this will show the user the proper key to press. This was prompted by a user asking me where the ALT key was on their keyboard.
This does not need any logic change to actual keypress detection, as that already works. It is solely a visual change to the chat copy hover message.
Related Issue(s)
No open GitHub issues are relevant.
How to test
Launch the game, and hover over a chat message. Verify the text is appropriate to the operating system. If on macOS, it will be "OPTION". Otherwise, it will be "ALT".
macOS verification:
Release Notes
Documentation
No