Skip to content

Conversation

@the-t-in-rtf
Copy link
Contributor

@the-t-in-rtf the-t-in-rtf commented Nov 8, 2021

See C2LC-539 for details.

"KeyboardInputModal.KeyIcons.Alt": "Alt",
"KeyboardInputModal.KeyIcons.Control": "Ctrl",
"KeyboardInputModal.KeyIcons.Shift": "Shift",
"KeyboardInputModal.KeyIcons.Option": "",
Copy link
Contributor

Choose a reason for hiding this comment

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

I started to wonder do we really need to use intl to get the KeyIcons as they all seem to be international?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's potentially useful for countries that tend to use local abbreviations for the common modifier keys. I couldn't find any French Canadian keyboards that went so far as to translate "control", et cetera, but I did find German layouts that were translated. However, even in that case, it varies by keyboard, the Apple keyboard for the German market still uses the English terms. You'd really have to assume that modern computer users would be used to the English terms for their platform, so probably we could just use that. For the letter keys, internationalisation seems less useful and potentially dangerous, as you never want to get in a situation where the key code doesn't match the label.

I could see moving these to a constant array in KeyboardInputSchemes, and it wouldn't take long. I'll wait to get Simon's input first.

@chosww
Copy link
Contributor

chosww commented Nov 8, 2021

Other than the question I have, the changes look good and works fine on MacBook, iPhone, iPad, Windows and Chromebook.

@the-t-in-rtf the-t-in-rtf changed the base branch from develop-1.0 to develop-1.2 December 17, 2021 09:29
@sbates-idrc sbates-idrc linked an issue Apr 30, 2024 that may be closed by this pull request
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.

Add platform detection for key set names

2 participants