diff --git a/bin/dnet/main.py b/bin/dnet/main.py index b687faa55..e9201b109 100644 --- a/bin/dnet/main.py +++ b/bin/dnet/main.py @@ -106,6 +106,8 @@ class Dnetview: loop.run() def unhandled_input(self, key): + if isinstance(key, tuple): + return if key in ('q'): for task in asyncio.all_tasks(): task.cancel() diff --git a/bin/dnet/view.py b/bin/dnet/view.py index 1b546d366..2b40c8d69 100644 --- a/bin/dnet/view.py +++ b/bin/dnet/view.py @@ -38,8 +38,6 @@ class NodeView(urwid.WidgetWrap): return True def keypress(self, size, key): - #if key in ('q'): - # raise urwid.ExitMainLoop() return key def update_w(self):