summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 67f9b7b8..8039b037 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -100,6 +100,12 @@ class UI(object):
def keypress(self, key):
self.inputwrap.keypress((150, 20), key, interpret=False)
+ def show_as_root_until_keypress(self, w, key):
+ def oe():
+ self.inputwrap.set_root(self.mainframe)
+ helpwrap = widgets.CatchKeyWidgetWrap(w, key, on_catch=oe)
+ self.inputwrap.set_root(helpwrap)
+
def prompt(self, prefix='>', text=u'', completer=None, tab=0, history=[]):
"""prompt for text input