Add an option to allow clearing of display mode override.

This commit is contained in:
Aldo Cortesi 2012-04-02 11:16:20 +12:00
parent 7ed1c1c231
commit 42d06a05c0
1 changed files with 3 additions and 1 deletions

View File

@ -448,9 +448,11 @@ class FlowView(common.WWrap):
)
key = None
elif key == "m":
p = list(contentview.VIEW_PROMPT)
p.insert(0, ("clear", "c"))
self.master.prompt_onekey(
"Display mode",
contentview.VIEW_PROMPT,
p,
self.change_this_display_mode
)
key = None