mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
certain keyboard shortcuts were never tested ever.
This commit is contained in:
parent
c529cc6f1f
commit
570c4b6300
@ -32,10 +32,10 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||||||
'm w': 'div.notification-options li[data-id="3"] a', // mark topic as watching
|
'm w': 'div.notification-options li[data-id="3"] a', // mark topic as watching
|
||||||
'n': '#user-notifications', // open notifictions menu
|
'n': '#user-notifications', // open notifictions menu
|
||||||
'o,enter': '#topic-list tr.topic-list-item.selected a.title', // open selected topic
|
'o,enter': '#topic-list tr.topic-list-item.selected a.title', // open selected topic
|
||||||
'r': '#topic-footer-buttons button.create', // reply to topic
|
'shift+r': '#topic-footer-buttons button.create', // reply to topic
|
||||||
'R': '.topic-post.selected button.create', // reply to selected post
|
'r': '.topic-post.selected button.create', // reply to selected post
|
||||||
's': '#topic-footer-buttons button.share', // share topic
|
'shift+s': '#topic-footer-buttons button.share', // share topic
|
||||||
'S': '.topic-post.selected button.share', // share selected post
|
's': '.topic-post.selected button.share', // share selected post
|
||||||
'!': '.topic-post.selected button.flag' // flag selected post
|
'!': '.topic-post.selected button.flag' // flag selected post
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1829,10 +1829,10 @@ en:
|
|||||||
actions:
|
actions:
|
||||||
title: 'Actions'
|
title: 'Actions'
|
||||||
star: '<b>f</b> Star topic'
|
star: '<b>f</b> Star topic'
|
||||||
share_topic: '<b>s</b> Share topic'
|
share_topic: '<b>shift s</b> Share topic'
|
||||||
share_post: '<b>shift s</b> Share post'
|
share_post: '<b>s</b> Share post'
|
||||||
reply_topic: '<b>r</b> Reply to topic'
|
reply_topic: '<b>shift r</b> Reply to topic'
|
||||||
reply_post: '<b>shift r</b> Reply to post'
|
reply_post: '<b>r</b> Reply to post'
|
||||||
like: '<b>l</b> Like post'
|
like: '<b>l</b> Like post'
|
||||||
flag: '<b>!</b> Flag post'
|
flag: '<b>!</b> Flag post'
|
||||||
bookmark: '<b>b</b> Bookmark post'
|
bookmark: '<b>b</b> Bookmark post'
|
||||||
|
@ -24,7 +24,7 @@ module("Discourse.KeyboardShortcuts", {
|
|||||||
sinon.stub(Discourse.URL, "routeTo");
|
sinon.stub(Discourse.URL, "routeTo");
|
||||||
|
|
||||||
$("#qunit-fixture").html([
|
$("#qunit-fixture").html([
|
||||||
"<article class='selected'>",
|
"<article class='topic-post selected'>",
|
||||||
" <button class='bookmark'></button>",
|
" <button class='bookmark'></button>",
|
||||||
" <button class='delete'></button>",
|
" <button class='delete'></button>",
|
||||||
" <button class='edit'></button>",
|
" <button class='edit'></button>",
|
||||||
|
Loading…
Reference in New Issue
Block a user