Преглед на файлове

Merge pull request #101620 from Yelloween10/fix-modifier-doc

Update `InputEventWithModifiers` documentation for modifier key behaviour
Thaddeus Crews преди 8 месеца
родител
ревизия
b6203da3ae
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      doc/classes/InputEventWithModifiers.xml

+ 1 - 0
doc/classes/InputEventWithModifiers.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	<description>
 		Stores information about mouse, keyboard, and touch gesture input events. This includes information about which modifier keys are pressed, such as [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See [method Node._input].
+		[b]Note:[/b] Modifier keys are considered modifiers only when used in combination with another key. As a result, their corresponding member variables, such as [member ctrl_pressed], will return [code]false[/code] if the key is pressed on its own.
 	</description>
 	<tutorials>
 		<link title="Using InputEvent">$DOCS_URL/tutorials/inputs/inputevent.html</link>