add support for 'command + up/down' to go to first/last post

This commit is contained in:
Régis Hanol 2016-05-19 22:16:23 +02:00
parent 6142ae55cd
commit 2c2c47fe4e
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ const bindings = {
'd': {postAction: 'deletePost'},
'e': {postAction: 'editPost'},
'end': {handler: 'goToLastPost', anonymous: true},
'command+down': {handler: 'goToLastPost', anonymous: true},
'f': {handler: 'toggleBookmarkTopic'},
'g h': {path: '/', anonymous: true},
'g l': {path: '/latest', anonymous: true},
@ -26,6 +27,7 @@ const bindings = {
'g p': {path: '/my/activity'},
'g m': {path: '/my/messages'},
'home': {handler: 'goToFirstPost', anonymous: true},
'command+up': {handler: 'goToFirstPost', anonymous: true},
'j': {handler: 'selectDown', anonymous: true},
'k': {handler: 'selectUp', anonymous: true},
'l': {click: '.topic-post.selected button.toggle-like'},