Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
de3bc8d294
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
-	if (!selected) {
+	if (!selected || !p_event->is_pressed()) {
 		return;
 	}