refs #750 Switch focus between Follow notification and Account Profile

This commit is contained in:
AkiraFukushima 2018-11-29 23:34:03 +09:00
parent 70638f6fab
commit 68b149c8ee
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,7 @@
:overlaid="overlaid" :overlaid="overlaid"
@focusNext="$emit('focusNext')" @focusNext="$emit('focusNext')"
@focusPrev="$emit('focusPrev')" @focusPrev="$emit('focusPrev')"
@focusRight="$emit('focusRight')"
@select="$emit('selectNotification')" @select="$emit('selectNotification')"
> >
</follow> </follow>

View File

@ -2,7 +2,7 @@
<div <div
class="follow" class="follow"
tabIndex="0" tabIndex="0"
v-shortkey="shortcutEnabled ? {next: ['j'], prev: ['k'], profile: ['p']} : {}" v-shortkey="shortcutEnabled ? {next: ['j'], prev: ['k'], right: ['l'], profile: ['p']} : {}"
@shortkey="handleStatusControl" @shortkey="handleStatusControl"
ref="status" ref="status"
@click="$emit('select')" @click="$emit('select')"
@ -91,6 +91,9 @@ export default {
case 'prev': case 'prev':
this.$emit('focusPrev') this.$emit('focusPrev')
break break
case 'right':
this.$emit('focusRight')
break
case 'profile': case 'profile':
this.openUser(this.message.account) this.openUser(this.message.account)
break break