summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-07-25 14:21:56 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-07-25 14:21:56 +0300
commitf743c6a3687749cd3283da3581a0df49c66c5032 (patch)
tree19fd9cb01f3b80e73bdd7d54327c39106b49ad26
parent18596f6b3dd8a3bda04d0367d37f94c579a8a6e7 (diff)
Fix script editor zoom shortcuts not marking events as accepted.
-rw-r--r--editor/code_editor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index fd331503ca..99ca82b311 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -824,12 +824,15 @@ void CodeTextEditor::_text_editor_gui_input(const Ref<InputEvent> &p_event) {
if (k->is_pressed()) {
if (ED_IS_SHORTCUT("script_editor/zoom_in", p_event)) {
_zoom_in();
+ accept_event();
}
if (ED_IS_SHORTCUT("script_editor/zoom_out", p_event)) {
_zoom_out();
+ accept_event();
}
if (ED_IS_SHORTCUT("script_editor/reset_zoom", p_event)) {
_reset_zoom();
+ accept_event();
}
}
}