page.py: quit without prompt restored

docs.py: reflect change on docs
This commit is contained in:
Gustavo Zambonin
2015-10-16 15:46:15 -03:00
parent 91c384d36b
commit 0cfa7bd2a8
2 changed files with 5 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ Basic Commands
`r` or `F5` : Refresh page content
`u` : Log in or switch accounts
`?` : Show the help screen
`q` : Quit
`q/Q` : Quit/Force quit
Authenticated Commands
`a/z` : Upvote/downvote

View File

@@ -275,6 +275,10 @@ class BasePage(object):
elif ch != 'n':
curses.flash()
@BaseController.register('Q')
def force_exit(self):
sys.exit()
@BaseController.register('?')
def help(self):
show_help(self._content_window)