From f743c6a3687749cd3283da3581a0df49c66c5032 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 25 Jul 2022 14:21:56 +0300 Subject: [PATCH] Fix script editor zoom shortcuts not marking events as accepted. --- editor/code_editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index fd331503ca5..99ca82b3114 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -824,12 +824,15 @@ void CodeTextEditor::_text_editor_gui_input(const Ref &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(); } } }