summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-14 13:04:57 +0200
committerGitHub <noreply@github.com>2021-09-14 13:04:57 +0200
commitde3bc8d294d2343aca30a9939cef954c8aa7c6bd (patch)
tree6d7214eb4f9a8e2fb8803b1b42d61e15ed2d1e75 /editor
parent8c8b634d2339c3d65cf726e17ee84288cfa6ac8d (diff)
parent91974057a5ebacd0b4e09713df692b16f4100e76 (diff)
Merge pull request #52259 from jmb462/fix-ctrl-V-wrong-behavior-in-inspector-textedit
Fix Ctrl+V wrong behavior in inspector textedit (Fix #52208)
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_inspector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index d3841ad6c0..298c1ed917 100644
--- a/editor/editor_inspector.cpp
+++ b/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;
}