Merge pull request #110895 from Giganzo/input-focus

Add setting for when to show the focus state for mouse input
This commit is contained in:
Thaddeus Crews 2025-10-21 19:09:25 -05:00
commit e870cd911b
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
6 changed files with 12 additions and 8 deletions

View file

@ -950,7 +950,7 @@ void TextEdit::_notification(int p_what) {
if (!editable) {
draw_caret = is_drawing_caret_when_editable_disabled();
}
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.style_focus->draw(ci, Rect2(Point2(), size));
}