1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Add keyboard shortcut for Clear Selection (#457)

This commit is contained in:
gamesplease 2021-02-17 14:53:01 -03:00 committed by GitHub
parent f9c275d0a4
commit 59862171e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -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) "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] [locale]

View file

@ -66,7 +66,7 @@ func setup_edit_menu() -> void:
"Cut" : InputMap.get_action_list("cut")[0].get_scancode_with_modifiers(), "Cut" : InputMap.get_action_list("cut")[0].get_scancode_with_modifiers(),
"Paste" : InputMap.get_action_list("paste")[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(), "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 "Preferences" : 0
} }
var edit_menu : PopupMenu = Global.edit_menu.get_popup() var edit_menu : PopupMenu = Global.edit_menu.get_popup()