summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-18 14:39:18 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-18 14:39:18 +0900
commitf4045fb5b32b69664427d844a66d37258e19c5b1 (patch)
tree33bbeb0516099c962cb100409d3f74fed4733ec0 /src
parentFix bug (diff)
downloadmisskey-f4045fb5b32b69664427d844a66d37258e19c5b1.tar.gz
misskey-f4045fb5b32b69664427d844a66d37258e19c5b1.tar.bz2
misskey-f4045fb5b32b69664427d844a66d37258e19c5b1.zip
Improve keyboard shortcuts
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/components/notes.note.vue2
-rw-r--r--src/client/app/desktop/views/components/renote-form-window.vue6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue
index e53dbe1215..b96f3ab998 100644
--- a/src/client/app/desktop/views/components/notes.note.vue
+++ b/src/client/app/desktop/views/components/notes.note.vue
@@ -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'),
diff --git a/src/client/app/desktop/views/components/renote-form-window.vue b/src/client/app/desktop/views/components/renote-form-window.vue
index 6c9cb59d4a..44ad2da800 100644
--- a/src/client/app/desktop/views/components/renote-form-window.vue
+++ b/src/client/app/desktop/views/components/renote-form-window.vue
@@ -15,7 +15,8 @@ export default Vue.extend({
keymap(): any {
return {
'esc': this.close,
- 'ctrl+enter': this.post
+ 'enter': this.post,
+ 'q': this.quote,
};
}
},
@@ -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();
},