Some additional keybindings

This commit is contained in:
Théo Piboubès
2015-08-10 18:06:55 +02:00
parent 7e6f639162
commit 248a87a7e5
3 changed files with 4 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ Once you are logged in your username will appear in the top-right corner of the
:``c``: Compose a new post or comment
:``e``: Edit an existing post or comment
:``d``: Delete an existing post or comment
:``s``: Open subscribed subreddits list
:``s``: Open/close subscribed subreddits list
--------------
Subreddit Mode

View File

@@ -42,7 +42,7 @@ Authenticated Commands
`c` : Compose a new post or comment
`e` : Edit an existing post or comment
`d` : Delete an existing post or comment
`s` : Open subscribed subreddits list
`s` : Open/close subscribed subreddits list
Subreddit Mode
`l` or `RIGHT` : Enter the selected submission

View File

@@ -37,7 +37,7 @@ class SubscriptionPage(BasePage):
self.content = SubscriptionContent.get_list(self.reddit, self.loader)
self.nav = Navigator(self.content.get)
@SubscriptionController.register(curses.KEY_ENTER, 10)
@SubscriptionController.register(curses.KEY_ENTER, 10, curses.KEY_RIGHT)
def open_selected_subreddit(self):
"Open the selected subreddit"
@@ -46,7 +46,7 @@ class SubscriptionPage(BasePage):
page = SubredditPage(self.stdscr, self.reddit, data['name'][2:]) # Strip the leading /r
page.loop()
@SubscriptionController.register(curses.KEY_LEFT)
@SubscriptionController.register(curses.KEY_LEFT, 's')
def close_subscriptions(self):
"Close subscriptions and return to the subreddit page"