Merge pull request #34407 from Calinou/doc-key-mask-cmd

Improve the `KEY_MASK_CMD` documentation
This commit is contained in:
Rémi Verschelde 2019-12-17 22:12:08 +01:00 committed by GitHub
commit 91dc474515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@
Ctrl key mask. Ctrl key mask.
</constant> </constant>
<constant name="KEY_MASK_CMD" value="268435456" enum="KeyModifierMask"> <constant name="KEY_MASK_CMD" value="268435456" enum="KeyModifierMask">
Cmd key mask. Command key mask. On macOS, this is equivalent to [constant KEY_MASK_META]. On other platforms, this is equivalent to [constant KEY_MASK_CTRL]. This mask should be preferred to [constant KEY_MASK_META] or [constant KEY_MASK_CTRL] for system shortcuts as it handles all platforms correctly.
</constant> </constant>
<constant name="KEY_MASK_KPAD" value="536870912" enum="KeyModifierMask"> <constant name="KEY_MASK_KPAD" value="536870912" enum="KeyModifierMask">
Keypad key mask. Keypad key mask.