Skip to content

Commit 71b7b2c

Browse files
Update doc/classes/Shortcut.xml
Co-authored-by: bruvzg <[email protected]>
1 parent dc54af7 commit 71b7b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/Shortcut.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
save_shortcut.set_events([key_event])
1818

1919
func _input(event:InputEvent) -&gt; void:
20-
if save_shortcut.matches_event(event):
20+
if save_shortcut.matches_event(event) and event.is_pressed() and not event.is_echo():
2121
print("Save shortcut pressed!")
2222
[/codeblock]
2323
</description>

0 commit comments

Comments
 (0)