From c60853e01f92b473338dd44b0106f9d31f7e8a0e Mon Sep 17 00:00:00 2001 From: FlashViper <61369148+FlashViper@users.noreply.github.com> Date: Thu, 4 Aug 2022 21:53:57 -0600 Subject: InputEventWithModifiers: Improve docs of 'command' and 'meta' Ported forward from 3.x --- doc/classes/InputEventWithModifiers.xml | 6 ++++-- 1 file 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. - 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. State of the [kbd]Ctrl[/kbd] modifier. - 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. State of the [kbd]Shift[/kbd] modifier. -- cgit v1.2.3