Skip to content

Commit

Permalink
TextInput widget: don't duplicate text when receiving initial focus
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Feb 12, 2024
1 parent a00338b commit 0a8c582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libopensesame/widgets/_text_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(
self.var = var
self.text = safe_decode(text)
self.set_var(text)
self.caret_pos = None
self.caret_pos = len(self.text)
self._key_filter = (
lambda k: True) if key_filter is None else key_filter

Expand Down

0 comments on commit 0a8c582

Please sign in to comment.