mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
certain keyboard shortcuts were never tested ever.
This commit is contained in:
parent
c529cc6f1f
commit
570c4b6300
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
},
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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>",
|
||||
|
|
Loading…
Reference in a new issue