Skip to content

Commit 55e21e7

Browse files
author
Paul V Craven
committed
Fix caret behavior on input field activation
1 parent d962be8 commit 55e21e7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

arcade/gui/widgets/text.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,11 @@ def _on_focus_change(self):
590590
def _on_active_changed(self):
591591
"""Handle the active state change of the input
592592
text field to care about loosing active state."""
593-
if not self._active:
593+
if self._active:
594+
self.trigger_full_render()
595+
self.caret.on_activate()
596+
self.caret.position = len(self.doc.text)
597+
else:
594598
self.deactivate()
595599

596600
def _apply_style(self):

0 commit comments

Comments
 (0)