spreadsheet

terminal spreadsheet application
git clone https://git.ce9e.org/spreadsheet.git

commit
618361390b0766c8e9fd09713c30f89c826e5646
parent
b752a6f40b6ef7f9b4698e3564f9ce779608b5fe
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2026-05-08 04:34
ignore keys while help if open

Diffstat

M sheet/__main__.py 7 ++++---

1 files changed, 4 insertions, 3 deletions


diff --git a/sheet/__main__.py b/sheet/__main__.py

@@ -231,10 +231,11 @@ class App(boon.App):
  231   231                 self.on_key(key)
  232   232             else:
  233   233                 self.input.on_key(key)
   -1   234         elif self.help:
   -1   235             if key in ['h', 'q']:
   -1   236                 self.help = False
  234   237         elif key == 'h':
  235    -1             self.help = not self.help
  236    -1         elif key == 'q' and self.help:
  237    -1             self.help = False
   -1   238             self.help = True
  238   239         elif key == 'q':
  239   240             self.running = False
  240   241         elif key == boon.KEY_DOWN: