Skip to content

Commit

Permalink
Fix HOME and END behavior for textbox popups
Browse files Browse the repository at this point in the history
  • Loading branch information
jwlodek committed Sep 28, 2022
1 parent 4cf51ca commit d5534cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py_cui/popups.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def update_height_width(self) -> None:
height, width = self.get_absolute_dimensions()
self._cursor_text_pos = 0
self._cursor_x = start_x + 2 + padx
self._initial_cursor = self._cursor_x
self._cursor_max_left = self._cursor_x
self._cursor_max_right = start_x + width - 1 - pady
self._cursor_y = start_y + int(height / 2) + 1
Expand Down

0 comments on commit d5534cb

Please sign in to comment.