chiark
/
gitweb
/
~ian
/
mastodonochrome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb198ad
)
Left and Right should page up/down in files.
author
Simon Tatham
<anakin@pobox.com>
Thu, 7 Dec 2023 21:22:35 +0000
(21:22 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Thu, 7 Dec 2023 21:22:35 +0000
(21:22 +0000)
Didn't realise how much I'd internalised that keystroke pair until I
found it wasn't working.
cursesclient.py
patch
|
blob
|
history
diff --git
a/cursesclient.py
b/cursesclient.py
index 6cdbd8f85e89b55779aba3a96cbc5ba182473d7e..29e11d5baec89987f150869062cdce39bfcc15af 100644
(file)
--- 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()