mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 04:07:27 +00:00
FEATURE: Use shift+Z twice to log out
This commit is contained in:
parent
9f50f70670
commit
f2fa7a39be
@ -53,7 +53,8 @@ const PATH_BINDINGS = {
|
||||
'q': 'quoteReply',
|
||||
'b': 'toggleBookmark',
|
||||
'f': 'toggleBookmarkTopic',
|
||||
'shift+r': 'replyToTopic'
|
||||
'shift+r': 'replyToTopic',
|
||||
'shift+z shift+z': 'logout'
|
||||
};
|
||||
|
||||
|
||||
@ -88,6 +89,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
logout() {
|
||||
this.container.lookup('route:application').send('logout');
|
||||
},
|
||||
|
||||
quoteReply() {
|
||||
$('.topic-post.selected button.create').click();
|
||||
// lazy but should work for now
|
||||
|
@ -19,7 +19,9 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, {
|
||||
actions: {
|
||||
|
||||
logout() {
|
||||
if (this.currentUser) {
|
||||
this.currentUser.destroySession().then(() => logout(this.siteSettings, this.keyValueStore));
|
||||
}
|
||||
},
|
||||
|
||||
_collectTitleTokens(tokens) {
|
||||
|
@ -32,6 +32,7 @@
|
||||
<li>{{{i18n 'keyboard_shortcuts_help.application.help'}}}</li>
|
||||
<li>{{{i18n 'keyboard_shortcuts_help.application.dismiss_new_posts'}}}</li>
|
||||
<li>{{{i18n 'keyboard_shortcuts_help.application.dismiss_topics'}}}</li>
|
||||
<li>{{{i18n 'keyboard_shortcuts_help.application.log_out'}}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span6">
|
||||
|
@ -2581,6 +2581,7 @@ en:
|
||||
help: '<b>?</b> Open keyboard help'
|
||||
dismiss_new_posts: '<b>x</b>, <b>r</b> Dismiss New/Posts'
|
||||
dismiss_topics: '<b>x</b>, <b>t</b> Dismiss Topics'
|
||||
log_out: '<b>shift</b>+<b>z</b> <b>shift</b>+<b>z</b> Log Out'
|
||||
actions:
|
||||
title: 'Actions'
|
||||
bookmark_topic: '<b>f</b> Toggle bookmark topic'
|
||||
|
Loading…
x
Reference in New Issue
Block a user