From 92c04fa727e3fc507e31c1bce88beeceb98fb06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 17 May 2021 17:50:42 +0200 Subject: [PATCH] Fix build after mismatch between #48168 and #48599 --- scene/gui/text_edit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 2269d4f00236..ba98b3c93103 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -2917,7 +2917,7 @@ void TextEdit::_gui_input(const Ref &p_gui_input) { if (mb->get_button_index() == MOUSE_BUTTON_WHEEL_UP && !mb->is_command_pressed()) { if (mb->is_shift_pressed()) { h_scroll->set_value(h_scroll->get_value() - (100 * mb->get_factor())); - } else if (mb->get_alt()) { + } else if (mb->is_alt_pressed()) { // Scroll 5 times as fast as normal (like in Visual Studio Code). _scroll_up(15 * mb->get_factor()); } else if (v_scroll->is_visible()) { @@ -2928,7 +2928,7 @@ void TextEdit::_gui_input(const Ref &p_gui_input) { if (mb->get_button_index() == MOUSE_BUTTON_WHEEL_DOWN && !mb->is_command_pressed()) { if (mb->is_shift_pressed()) { h_scroll->set_value(h_scroll->get_value() + (100 * mb->get_factor())); - } else if (mb->get_alt()) { + } else if (mb->is_alt_pressed()) { // Scroll 5 times as fast as normal (like in Visual Studio Code). _scroll_down(15 * mb->get_factor()); } else if (v_scroll->is_visible()) {