소스 검색

Merge pull request #52259 from jmb462/fix-ctrl-V-wrong-behavior-in-inspector-textedit

Fix Ctrl+V wrong behavior in inspector textedit (Fix #52208)
Rémi Verschelde 4 년 전
부모
커밋
de3bc8d294
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/editor_inspector.cpp

+ 1 - 1
editor/editor_inspector.cpp

@@ -799,7 +799,7 @@ void EditorProperty::gui_input(const Ref<InputEvent> &p_event) {
 }
 }
 
 
 void EditorProperty::unhandled_key_input(const Ref<InputEvent> &p_event) {
 void EditorProperty::unhandled_key_input(const Ref<InputEvent> &p_event) {
-	if (!selected) {
+	if (!selected || !p_event->is_pressed()) {
 		return;
 		return;
 	}
 	}