fill3: Let ctrl-c quit the hello world test.

This commit is contained in:
Andrew Hamilton 2022-01-04 09:27:13 +10:00
parent 125101026c
commit dd5aa524a7

View file

@ -489,7 +489,7 @@ class _Screen:
return self.content.appearance(dimensions)
def on_keyboard_input(self, term_code):
if term_code in ["q", terminal.ESC]:
if term_code in ["q", terminal.ESC, terminal.CTRL_C]:
SHUTDOWN_EVENT.set()
else:
self.content = Filler(Text(repr(term_code)))