dnet: fix bug which caused dnet to crash on receiving unhandled mouse input

This commit is contained in:
lunar-mining
2023-10-29 08:02:39 +01:00
parent 307d34e37d
commit e5d0aca1f4
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -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):