From 96fb9eeca496b6c79b9cc578edb000927cd592bc Mon Sep 17 00:00:00 2001 From: FIF15 Date: Mon, 30 Nov 2020 12:28:45 +0800 Subject: fix #43695 by revert part of #41576 Note that #42109 already reverted the change of MenuButton, and actually fixed #43695. As a result, this commit only reverts the change to LinkButton, in order to prevent unpredictable consequences. --- scene/gui/link_button.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/link_button.cpp b/scene/gui/link_button.cpp index d85c8d2112..b66ee514dc 100644 --- a/scene/gui/link_button.cpp +++ b/scene/gui/link_button.cpp @@ -295,5 +295,6 @@ void LinkButton::_bind_methods() { LinkButton::LinkButton() { text_buf.instance(); underline_mode = UNDERLINE_MODE_ALWAYS; + set_focus_mode(FOCUS_NONE); set_default_cursor_shape(CURSOR_POINTING_HAND); } -- cgit v1.2.3