1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add support for closing dialog windows with Cmd+W on macOS

This commit is contained in:
passivestar
2025-06-09 09:28:02 +04:00
parent 9e02194297
commit 979f8fa342
4 changed files with 19 additions and 2 deletions

View File

@@ -1257,6 +1257,13 @@
Default [InputEventAction] to discard a modal or pending input.
[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are necessary for the internal logic of several [Control]s. The events assigned to the action can however be modified.
</member>
<member name="input/ui_close_dialog" type="Dictionary" setter="" getter="">
Default [InputEventAction] to close a dialog window.
[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are necessary for the internal logic of several [Control]s. The events assigned to the action can however be modified.
</member>
<member name="input/ui_close_dialog.macos" type="Dictionary" setter="" getter="">
macOS specific override for the shortcut to close a dialog window.
</member>
<member name="input/ui_colorpicker_delete_preset" type="Dictionary" setter="" getter="">
Default [InputEventAction] to delete a color preset in a [ColorPicker].
[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are necessary for the internal logic of several [Control]s. The events assigned to the action can however be modified.