From c20e0dfc2d5c57ac24075fd4126a37119ef3bd88 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Sun, 17 Dec 2023 13:58:42 +0100 Subject: [PATCH] Don't focus on buttons in Task Palette --- editor/task_palette.cpp | 4 ++++ editor/task_palette.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/editor/task_palette.cpp b/editor/task_palette.cpp index 980b6a2..a462a8f 100644 --- a/editor/task_palette.cpp +++ b/editor/task_palette.cpp @@ -41,6 +41,10 @@ Control *TaskButton::make_custom_tooltip(const String &p_text) const { return help_bit; } +TaskButton::TaskButton() { + set_focus_mode(FOCUS_NONE); +} + //**** TaskButton ^ //**** TaskPaletteSection diff --git a/editor/task_palette.h b/editor/task_palette.h index e336ae6..669ace8 100644 --- a/editor/task_palette.h +++ b/editor/task_palette.h @@ -25,6 +25,8 @@ class TaskButton : public Button { public: virtual Control *make_custom_tooltip(const String &p_text) const override; + + TaskButton(); }; class TaskPaletteSection : public VBoxContainer {