diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 23b263a23f..24ed0f3d0a 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -1292,7 +1292,7 @@ LCD subpixel layout used for font anti-aliasing. See [enum TextServer.FontLCDSubpixelLayout]. - When [member BaseButton.shortcut_feedback] is enabled, this is the time the [BaseButton] will remain highlighted after a shortcut. + When [member BaseButton.shortcut_feedback] is enabled, this is the time the [BaseButton] will remain highlighted after a shortcut. This duration is not affected by [member Engine.time_scale]. Timer setting for incremental search in [Tree], [ItemList], etc. controls (in milliseconds). diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index 31bf964729..58a23909e6 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -504,6 +504,7 @@ void BaseButton::shortcut_input(const Ref &p_event) { if (shortcut_feedback_timer == nullptr) { shortcut_feedback_timer = memnew(Timer); shortcut_feedback_timer->set_one_shot(true); + shortcut_feedback_timer->set_ignore_time_scale(true); add_child(shortcut_feedback_timer, false, INTERNAL_MODE_BACK); shortcut_feedback_timer->set_wait_time(GLOBAL_GET_CACHED(double, "gui/timers/button_shortcut_feedback_highlight_time")); shortcut_feedback_timer->connect("timeout", callable_mp(this, &BaseButton::_shortcut_feedback_timeout));