소스 검색

remove shift key check because shift + v in use with tool mode

volzhs 10 년 전
부모
커밋
edabbcd064
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tools/editor/plugins/canvas_item_editor_plugin.cpp

+ 2 - 2
tools/editor/plugins/canvas_item_editor_plugin.cpp

@@ -144,8 +144,8 @@ 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
+	if (p_ev.key.mod.control)
+		// prevent to change tool mode when control key is pressed
 		return;
 		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);