1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add setting for when to show the focus state for mouse input

This commit is contained in:
Giganzo
2025-09-24 16:26:48 +02:00
parent 7521044465
commit e384085ca1
6 changed files with 12 additions and 8 deletions

View File

@@ -30,6 +30,7 @@
#include "line_edit.h"
#include "core/config/project_settings.h"
#include "core/input/input_map.h"
#include "core/os/keyboard.h"
#include "core/os/os.h"
@@ -1343,7 +1344,7 @@ void LineEdit::_notification(int p_what) {
style->draw(ci, Rect2(Point2(), size));
}
if (has_focus(true)) {
if (has_focus(Engine::get_singleton()->is_editor_hint() || GLOBAL_GET_CACHED(int, "gui/common/show_focus_state_on_pointer_event") != 1)) {
theme_cache.focus->draw(ci, Rect2(Point2(), size));
}