diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2022-08-29 14:52:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 14:52:42 +0300 |
commit | 0024ba8daddbc7d49458d438ccf578242d900e57 (patch) | |
tree | 2b2e5ea59e5e1c936d5c01d474355913e10e864b | |
parent | 322c812231fa28e72a7a316088a1dd6775e96f94 (diff) | |
parent | c60853e01f92b473338dd44b0106f9d31f7e8a0e (diff) | |
download | redot-engine-0024ba8daddbc7d49458d438ccf578242d900e57.tar.gz |
Merge pull request #63938 from FlashViper/patch-2
Modified descriptions of 'command' and 'meta'
-rw-r--r-- | doc/classes/InputEventWithModifiers.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/classes/InputEventWithModifiers.xml b/doc/classes/InputEventWithModifiers.xml index ff2e6409c9..b4a276f6ac 100644 --- a/doc/classes/InputEventWithModifiers.xml +++ b/doc/classes/InputEventWithModifiers.xml @@ -14,13 +14,15 @@ State of the [kbd]Alt[/kbd] modifier. </member> <member name="command_pressed" type="bool" setter="set_command_pressed" getter="is_command_pressed" default="false"> - State of the [kbd]Cmd[/kbd] modifier. + State of the [kbd]Cmd[/kbd] modifier. On macOS, this is equivalent to [member meta_pressed]. On other platforms, this is equivalent to [member ctrl_pressed]. + This modifier should be preferred to [member ctrl_pressed] or [member meta_pressed] for system shortcuts, as it maintains better cross-platform compatibility. </member> <member name="ctrl_pressed" type="bool" setter="set_ctrl_pressed" getter="is_ctrl_pressed" default="false"> State of the [kbd]Ctrl[/kbd] modifier. </member> <member name="meta_pressed" type="bool" setter="set_meta_pressed" getter="is_meta_pressed" default="false"> - State of the [kbd]Meta[/kbd] modifier. + State of the [kbd]Meta[/kbd] modifier. On Windows and Linux, this represents the Windows key (sometimes called "meta" or "super" on Linux). On macOS, this represents the Command key, and is equivalent to [member command_pressed]. + For better cross-system compatibility, use [member command_pressed] instead. </member> <member name="shift_pressed" type="bool" setter="set_shift_pressed" getter="is_shift_pressed" default="false"> State of the [kbd]Shift[/kbd] modifier. |