Mercurial > urwid-satext
diff examples/menu.py @ 42:585302e84c1f
fixed typo + added comment
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 20 Feb 2011 00:37:54 +0100 |
parents | 589e5e22f8f1 |
children | e49d8f289a73 |
line wrap: on
line diff
--- a/examples/menu.py Sun Feb 20 00:32:57 2011 +0100 +++ b/examples/menu.py Sun Feb 20 00:37:54 2011 +0100 @@ -55,11 +55,11 @@ return self.menu def keyHandler(self, input): - """We leave is user press 'esc'""" + """We leave if user press a quit char""" if input in ('esc','q','Q'): raise urwid.ExitMainLoop() else: - return self.menu.checkShortcuts(input) + return self.menu.checkShortcuts(input) #needed to manage shortcuts demo = MenuDemo() demo.run()