Skip to content

Commit

Permalink
Improve keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Sep 18, 2018
1 parent 16c3616 commit f4045fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/app/desktop/views/components/notes.note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default Vue.extend({
return {
'r|left': this.reply,
'a|plus': () => this.react(true),
'q|n|right': this.renote,
'q|right': this.renote,
'up|shift+tab': this.focusBefore,
'down|tab': this.focusAfter,
'1': () => this.reactDirectly('like'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default Vue.extend({
keymap(): any {
return {
'esc': this.close,
'ctrl+enter': this.post
'enter': this.post,
'q': this.quote,
};
}
},
Expand All @@ -24,6 +25,9 @@ export default Vue.extend({
post() {
(this.$refs.form as any).ok();
},
quote() {
(this.$refs.form as any).onQuote();
},
close() {
(this.$refs.window as any).close();
},
Expand Down

0 comments on commit f4045fb

Please sign in to comment.