Merge pull request #71798 from reduz/fix-editor-redraw

Fix constant editor redraw after shortcut
This commit is contained in:
Rémi Verschelde 2023-01-21 11:27:29 +01:00
commit d45af488c4
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -385,6 +385,7 @@ void BaseButton::shortcut_input(const Ref<InputEvent> &p_event) {
if (shortcut_feedback) {
if (shortcut_feedback_timer == nullptr) {
shortcut_feedback_timer = memnew(Timer);
shortcut_feedback_timer->set_one_shot(true);
add_child(shortcut_feedback_timer);
shortcut_feedback_timer->set_wait_time(GLOBAL_GET("gui/timers/button_shortcut_feedback_highlight_time"));
shortcut_feedback_timer->connect("timeout", callable_mp(this, &BaseButton::_shortcut_feedback_timeout));