mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
dnet: fix bug which caused dnet to crash on receiving unhandled mouse input
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user