mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a docstring to action_page_up
This commit is contained in:
@@ -996,6 +996,7 @@ class Tree(Generic[TreeDataType], ScrollView, can_focus=True):
|
||||
self.scroll_to_line(self.cursor_line)
|
||||
|
||||
def action_page_up(self) -> None:
|
||||
"""Move the cursor up a page's-worth of nodes."""
|
||||
if self.cursor_line == -1:
|
||||
self.cursor_line = self.last_line
|
||||
self.cursor_line -= self.scrollable_content_region.height - 1
|
||||
|
||||
Reference in New Issue
Block a user