diff --git a/project.godot b/project.godot index a0b666b6c..1979908f4 100644 --- a/project.godot +++ b/project.godot @@ -444,6 +444,11 @@ show_pixel_grid={ "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":true,"pressed":false,"scancode":72,"unicode":0,"echo":false,"script":null) ] } +clear_selection={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":true,"meta":false,"command":true,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null) + ] +} [locale] diff --git a/src/UI/TopMenuContainer.gd b/src/UI/TopMenuContainer.gd index 2be69a4de..21a4c114e 100644 --- a/src/UI/TopMenuContainer.gd +++ b/src/UI/TopMenuContainer.gd @@ -66,7 +66,7 @@ func setup_edit_menu() -> void: "Cut" : InputMap.get_action_list("cut")[0].get_scancode_with_modifiers(), "Paste" : InputMap.get_action_list("paste")[0].get_scancode_with_modifiers(), "Delete" : InputMap.get_action_list("delete")[0].get_scancode_with_modifiers(), - "Clear Selection" : 0, + "Clear Selection" : InputMap.get_action_list("clear_selection")[0].get_scancode_with_modifiers(), "Preferences" : 0 } var edit_menu : PopupMenu = Global.edit_menu.get_popup()