From cb6243c3e25898b31769b343324a62bfe4eb213c Mon Sep 17 00:00:00 2001 From: Max Erenberg Date: Wed, 8 Sep 2021 22:28:29 +0000 Subject: [PATCH] remove unused handler --- ceo/tui/start.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ceo/tui/start.py b/ceo/tui/start.py index 1183087..2bf1825 100644 --- a/ceo/tui/start.py +++ b/ceo/tui/start.py @@ -1,7 +1,6 @@ import sys -from asciimatics.event import KeyboardEvent -from asciimatics.exceptions import ResizeScreenError, StopApplication +from asciimatics.exceptions import ResizeScreenError from asciimatics.scene import Scene from asciimatics.screen import Screen @@ -26,14 +25,6 @@ from .members.ResetPasswordResultView import ResetPasswordResultView from .members.SetForwardingAddressesView import SetForwardingAddressesView -def unhandled(event): - if isinstance(event, KeyboardEvent): - c = event.key_code - # Stop on 'q' or 'Esc' - if c in (113, 27): - raise StopApplication("User terminated app") - - # tuples of (name, view) views = [] @@ -73,7 +64,7 @@ def screen_wrapper(screen, last_scene, model): model.views = [view for name, view in views] screen.play( scenes, stop_on_resize=True, start_scene=last_scene, allow_int=True, - unhandled_input=unhandled) + ) def main():