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:
parent
f9c275d0a4
commit
59862171e9
|
@ -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]
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue