You've already forked godot
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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user