This commit is contained in:
Michael Hudson-Doyle 2016-11-02 12:24:06 +13:00
parent 6b99559819
commit f9de0818a8
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@ from urwid import WidgetWrap
class BaseView(WidgetWrap): class BaseView(WidgetWrap):
def keypress(self, size, key): def keypress(self, size, key):
if key == 'esc': if key == 'esc':
self.signal.prev_signal() self.controller.signal.prev_signal()
return None return None
if key in ['ctrl x']: if key in ['ctrl x']:
self.signal.emit_signal('control-x-quit') self.controller.signal.emit_signal('control-x-quit')
return super().keypress(size, key) return super().keypress(size, key)