Skip to content

Commit

Permalink
TextEntry on_mouse_press (#747)
Browse files Browse the repository at this point in the history
changed it so that two TextEntry cannot be active at the same time
  • Loading branch information
onuelito committed Jan 9, 2023
1 parent 36826d7 commit a40a702
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyglet/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ def on_mouse_press(self, x, y, buttons, modifiers):
if self._check_hit(x, y):
self._set_focus(True)
self._caret.on_mouse_press(x, y, buttons, modifiers)
else:
self._set_focus(False)

def on_text(self, text):
if not self.enabled:
Expand Down

0 comments on commit a40a702

Please sign in to comment.