mirror of
https://github.com/godotengine/godot.git
synced 2025-02-11 05:10:54 +00:00
prevent to change tool mode when control or shift key is pressed
This commit is contained in:
parent
c2e2f2e0ae
commit
80943d77a4
@ -144,6 +144,9 @@ void CanvasItemEditor::_unhandled_key_input(const InputEvent& p_ev) {
|
|||||||
|
|
||||||
if (!is_visible())
|
if (!is_visible())
|
||||||
return;
|
return;
|
||||||
|
if (p_ev.key.mod.control || p_ev.key.mod.shift)
|
||||||
|
// prevent to change tool mode when control or shift key is pressed
|
||||||
|
return;
|
||||||
if (p_ev.key.pressed && !p_ev.key.echo && p_ev.key.scancode==KEY_Q)
|
if (p_ev.key.pressed && !p_ev.key.echo && p_ev.key.scancode==KEY_Q)
|
||||||
_tool_select(TOOL_SELECT);
|
_tool_select(TOOL_SELECT);
|
||||||
if (p_ev.key.pressed && !p_ev.key.echo && p_ev.key.scancode==KEY_W)
|
if (p_ev.key.pressed && !p_ev.key.echo && p_ev.key.scancode==KEY_W)
|
||||||
|
Loading…
Reference in New Issue
Block a user