Polyfrost / Chatting

Chatting is a chat mod adding utilities such as extremely customizable chat tabs, chat shortcuts, chat screenshots, and message copying.
https://modrinth.com/mod/chatting
GNU General Public License v3.0
32 stars 15 forks source link

Localize Key Name to Operating System #26

Closed walkerselby closed 7 months ago

walkerselby commented 7 months ago

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:

image

Release Notes

Change modifier key text in the chat copy hover message to correspond to the operating system 

Documentation

No