summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmb462 <jmb462@gmail.com>2021-08-30 17:33:01 +0200
committerjmb462 <jmb462@gmail.com>2021-08-30 17:33:01 +0200
commit91974057a5ebacd0b4e09713df692b16f4100e76 (patch)
tree71bc291e2c570aae8f819107498bb74d15bf8ae0
parentefc87481e45c66b3a18dfe1db82c3289fe2a370d (diff)
Fix CTRL+V doesn't work properly in inspector textedit
-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 fee27dae58..53344e6000 100644
--- a/editor/editor_inspector.cpp
+++ b/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;
}