mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
let KEY_BACKSPACE also delete selected nodes, for mac UX consistency
This commit is contained in:
parent
854b0c8b98
commit
e23a1eb00d
@ -24,7 +24,7 @@ func _gui_input(event):
|
|||||||
var scancode_with_modifiers = event.get_scancode_with_modifiers()
|
var scancode_with_modifiers = event.get_scancode_with_modifiers()
|
||||||
if scancode_with_modifiers == KEY_C:
|
if scancode_with_modifiers == KEY_C:
|
||||||
center_view()
|
center_view()
|
||||||
elif scancode_with_modifiers == KEY_DELETE:
|
elif scancode_with_modifiers == KEY_DELETE || scancode_with_modifiers == KEY_BACKSPACE:
|
||||||
remove_selection()
|
remove_selection()
|
||||||
|
|
||||||
# Misc. useful functions
|
# Misc. useful functions
|
||||||
|
Loading…
Reference in New Issue
Block a user