In macOS the "Dvorak - QWERTY ⌘" keyboard layout is the same as the "Dvorak" layout but uses the QWERTY layout for interpreting shortcuts.
|Action||QWERTY||Dvorak - QWERTY ⌘||Dvorak|
|Paste||⌘V||⌘V||⌘.|It does this by mapping key codes to QWERTY when the ⌘ key is held.
While using the "Dvorak - QWERTY ⌘" layout blender only reacts to "Dvorak" shortcuts.
This patch passes modifier (⌘, Ctrl, etc.) info for a keyboard event to the function used in macOS for mapping keyboard layouts, UCKeyTranslate.
This makes blender treat shortcut inputs as if the layout were set to QWERTY whilst in "Dvorak - QWERTY ⌘" as expected.