From: Simon Tatham Date: Thu, 7 Dec 2023 21:22:35 +0000 (+0000) Subject: Left and Right should page up/down in files. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=c43867a0e2b286116689f778f2d5c2d86fe6930b;p=mastodonochrome.git Left and Right should page up/down in files. Didn't realise how much I'd internalised that keystroke pair until I found it wasn't working. --- diff --git a/cursesclient.py b/cursesclient.py index 6cdbd8f..29e11d5 100644 --- a/cursesclient.py +++ b/cursesclient.py @@ -406,9 +406,9 @@ class File(Activity): def handle_key(self, ch): if self.mode == 'normal': - if ch in {' ', curses.KEY_NPAGE}: + if ch in {' ', curses.KEY_NPAGE, curses.KEY_RIGHT}: self.down_screen() - elif ch in {'-', 'b', 'B', curses.KEY_PPAGE}: + elif ch in {'-', 'b', 'B', curses.KEY_PPAGE, curses.KEY_LEFT}: self.up_screen() elif ch == curses.KEY_DOWN: self.down_line()