diff options
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | presentty/console.py | 2 | ||||
-rw-r--r-- | presentty/presentty.py | 2 |
3 files changed, 6 insertions, 0 deletions
@@ -56,6 +56,8 @@ In either the presenter's console or the main presentty window, the | |||
56 | left and right arrow keys or page-up and page-down navigate between | 56 | left and right arrow keys or page-up and page-down navigate between |
57 | slides. | 57 | slides. |
58 | 58 | ||
59 | To exit presentty gracefully, use the 'q' key. | ||
60 | |||
59 | Source | 61 | Source |
60 | ------ | 62 | ------ |
61 | 63 | ||
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): | |||
172 | self.console.prev() | 172 | self.console.prev() |
173 | elif key == 't': | 173 | elif key == 't': |
174 | self.console.timerDialog() | 174 | self.console.timerDialog() |
175 | elif key == 'q': | ||
176 | raise urwid.ExitMainLoop() | ||
175 | else: | 177 | else: |
176 | return super(Screen, self).keypress(size, key) | 178 | return super(Screen, self).keypress(size, key) |
177 | return None | 179 | 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): | |||
78 | self.nextSlide() | 78 | self.nextSlide() |
79 | elif key in ('left', 'page up'): | 79 | elif key in ('left', 'page up'): |
80 | self.prevSlide() | 80 | self.prevSlide() |
81 | elif key == 'q': | ||
82 | raise urwid.ExitMainLoop() | ||
81 | 83 | ||
82 | def transitionTo(self, index, forward=True): | 84 | def transitionTo(self, index, forward=True): |
83 | self.pos = index | 85 | self.pos = index |