Not wrapping page up and page down on the summary view.
Wrapping was sometimes surprising, and now holding down page up/down quickly takes you to the top or bottom of the summary.
This commit is contained in:
parent
77012c92e4
commit
87341762a5
1 changed files with 6 additions and 2 deletions
8
vigil
8
vigil
|
|
@ -443,11 +443,15 @@ class Summary:
|
|||
|
||||
def cursor_page_up(self):
|
||||
view_width, view_height = self._view_widget.portal.last_dimensions
|
||||
self._move_cursor((0, -(view_height - 1)))
|
||||
x, y = self._cursor_position
|
||||
jump = view_height - 1
|
||||
self._cursor_position = (x, max(y - jump, 0))
|
||||
|
||||
def cursor_page_down(self):
|
||||
view_width, view_height = self._view_widget.portal.last_dimensions
|
||||
self._move_cursor((0, view_height - 1))
|
||||
x, y = self._cursor_position
|
||||
jump = view_height - 1
|
||||
self._cursor_position = (x, min(y + jump, len(self._column) - 1))
|
||||
|
||||
def _issue_generator(self):
|
||||
x, y = self.cursor_position()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue