let KEY_BACKSPACE also delete selected nodes, for mac UX consistency

This commit is contained in:
jack perkins 2019-10-17 15:43:12 +02:00
parent 854b0c8b98
commit e23a1eb00d

View File

@ -24,7 +24,7 @@ func _gui_input(event):
var scancode_with_modifiers = event.get_scancode_with_modifiers()
if scancode_with_modifiers == KEY_C:
center_view()
elif scancode_with_modifiers == KEY_DELETE:
elif scancode_with_modifiers == KEY_DELETE || scancode_with_modifiers == KEY_BACKSPACE:
remove_selection()
# Misc. useful functions