certain keyboard shortcuts were never tested ever.

This commit is contained in:
Sam 2014-05-25 14:59:05 +10:00
parent c529cc6f1f
commit 570c4b6300
3 changed files with 9 additions and 9 deletions

View file

@ -32,10 +32,10 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
'm w': 'div.notification-options li[data-id="3"] a', // mark topic as watching
'n': '#user-notifications', // open notifictions menu
'o,enter': '#topic-list tr.topic-list-item.selected a.title', // open selected topic
'r': '#topic-footer-buttons button.create', // reply to topic
'R': '.topic-post.selected button.create', // reply to selected post
's': '#topic-footer-buttons button.share', // share topic
'S': '.topic-post.selected button.share', // share selected post
'shift+r': '#topic-footer-buttons button.create', // reply to topic
'r': '.topic-post.selected button.create', // reply to selected post
'shift+s': '#topic-footer-buttons button.share', // share topic
's': '.topic-post.selected button.share', // share selected post
'!': '.topic-post.selected button.flag' // flag selected post
},

View file

@ -1829,10 +1829,10 @@ en:
actions:
title: 'Actions'
star: '<b>f</b> Star topic'
share_topic: '<b>s</b> Share topic'
share_post: '<b>shift s</b> Share post'
reply_topic: '<b>r</b> Reply to topic'
reply_post: '<b>shift r</b> Reply to post'
share_topic: '<b>shift s</b> Share topic'
share_post: '<b>s</b> Share post'
reply_topic: '<b>shift r</b> Reply to topic'
reply_post: '<b>r</b> Reply to post'
like: '<b>l</b> Like post'
flag: '<b>!</b> Flag post'
bookmark: '<b>b</b> Bookmark post'

View file

@ -24,7 +24,7 @@ module("Discourse.KeyboardShortcuts", {
sinon.stub(Discourse.URL, "routeTo");
$("#qunit-fixture").html([
"<article class='selected'>",
"<article class='topic-post selected'>",
" <button class='bookmark'></button>",
" <button class='delete'></button>",
" <button class='edit'></button>",