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:
commit
e870cd911b
6 changed files with 12 additions and 8 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue