File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 252252 The caret's column position inside the [LineEdit]. When set, the text may scroll to accommodate it.
253253 </member >
254254 <member name =" caret_force_displayed" type =" bool" setter =" set_caret_force_displayed" getter =" is_caret_force_displayed" default =" false" >
255- If [code]true[/code], the [LineEdit] will always show the caret, even if focus is lost.
255+ If [code]true[/code], the [LineEdit] will always show the caret, even if not editing or focus is lost.
256256 </member >
257257 <member name =" caret_mid_grapheme" type =" bool" setter =" set_caret_mid_grapheme_enabled" getter =" is_caret_mid_grapheme_enabled" default =" false" >
258258 Allow moving caret, selecting and removing the individual composite character components.
Original file line number Diff line number Diff line change @@ -1733,7 +1733,7 @@ void LineEdit::_validate_caret_can_draw() {
17331733 draw_caret = true ;
17341734 caret_blink_timer = 0.0 ;
17351735 }
1736- caret_can_draw = editing && (window_has_focus || (menu && menu->has_focus ())) && ( has_focus () || caret_force_displayed );
1736+ caret_can_draw = (caret_force_displayed && ! is_part_of_edited_scene ()) || ( editing && (window_has_focus || (menu && menu->has_focus ())) && has_focus ());
17371737}
17381738
17391739void LineEdit::delete_char () {
You can’t perform that action at this time.
0 commit comments