fill3: Let ctrl-c quit the hello world test.
This commit is contained in:
parent
125101026c
commit
dd5aa524a7
1 changed files with 1 additions and 1 deletions
|
|
@ -489,7 +489,7 @@ class _Screen:
|
||||||
return self.content.appearance(dimensions)
|
return self.content.appearance(dimensions)
|
||||||
|
|
||||||
def on_keyboard_input(self, term_code):
|
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()
|
SHUTDOWN_EVENT.set()
|
||||||
else:
|
else:
|
||||||
self.content = Filler(Text(repr(term_code)))
|
self.content = Filler(Text(repr(term_code)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue