RE: Keyboard shortcuts use wrong keys with Colemak, Dvorak, etc

Ilya Kulakov's Avatar

Ilya Kulakov

29 Apr, 2021 11:43 PM

Follow-up to http://support.timelimeapp.com/discussions/problems-mac/745-keyboard-shortcuts-use-wrong-keys-with-colemak-dvorak-etc

Disclaimer: I'm the maintainer of ShortcutRecorder.

While ShortcutRecorder does not support Dvorak / Colemark out of the box, it's possible for a user (of the library) to provide such support.

0. As a precondition, verify that the only input source the user has is Dvorak / Colemark (alternatively, let the user enable "Colemark / Dvorak" mode via preferences of your application).
1. Default values for the shortcuts should be transformed to appropriate Dvorak / Colemark counterparts. E.g., following the example in the original discussion, `kVK_ANSI_T` needs to transformed into `kVK_ANSI_G`.
2. Values recorded by SRRecorderControl does not need to be altered and can be stored as is
3. SRRecorderControl needs to be subclassed and -[SRRecorderControl stringValue] needs to be overridden to render keys as labeled by Dvorak / Colemark. E.g. kVK_ANSI_G needs to be rendered as "T" and not "G".

Feel free to contact me by email if you need further help with the issue.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac