diff options
Diffstat (limited to 'presentty')
-rw-r--r-- | presentty/console.py | 2 | ||||
-rw-r--r-- | presentty/presentty.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/presentty/console.py b/presentty/console.py index d29b864..d10dc3e 100644 --- a/presentty/console.py +++ b/presentty/console.py @@ -172,6 +172,8 @@ class Screen(urwid.WidgetWrap): self.console.prev() elif key == 't': self.console.timerDialog() + elif key == 'q': + raise urwid.ExitMainLoop() else: return super(Screen, self).keypress(size, key) return None diff --git a/presentty/presentty.py b/presentty/presentty.py index 35e19c1..b7589bf 100644 --- a/presentty/presentty.py +++ b/presentty/presentty.py @@ -78,6 +78,8 @@ class Presenter(object): self.nextSlide() elif key in ('left', 'page up'): self.prevSlide() + elif key == 'q': + raise urwid.ExitMainLoop() def transitionTo(self, index, forward=True): self.pos = index |