Explorar o código

Fix CTRL+V doesn't work properly in inspector textedit

jmb462 %!s(int64=4) %!d(string=hai) anos
pai
achega
91974057a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/editor_inspector.cpp

+ 1 - 1
editor/editor_inspector.cpp

@@ -795,7 +795,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;
 	}