Refactor & Usability improvements

This commit is contained in:
syuilo 2018-09-18 12:42:56 +09:00
parent 6ed3f9e414
commit 71a93b2b43
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 20 additions and 17 deletions

View file

@ -113,14 +113,11 @@ export default Vue.extend({
computed: {
keymap(): any {
return {
'r': this.reply,
'a': () => this.react(true),
'plus': () => this.react(true),
'n': this.renote,
'up': this.focusBefore,
'shift+tab': this.focusBefore,
'down': this.focusAfter,
'tab': this.focusAfter,
'r|left': this.reply,
'a|plus': () => this.react(true),
'n|right': this.renote,
'up|shift+tab': this.focusBefore,
'down|tab': this.focusAfter,
};
},
@ -250,7 +247,8 @@ export default Vue.extend({
(this as any).os.new(MkReactionPicker, {
source: this.$refs.reactButton,
note: this.p,
showFocus: viaKeyboard
showFocus: viaKeyboard,
animation: !viaKeyboard
}).$once('closed', this.focus);
},