Skip to content

Commit

Permalink
Add keyboard shortcut for Clear Selection (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamespleasure authored Feb 17, 2021
1 parent f9c275d commit 5986217
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion src/UI/TopMenuContainer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5986217

Please sign in to comment.