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"
@focusNext="$emit('focusNext')"
@focusPrev="$emit('focusPrev')"
@focusRight="$emit('focusRight')"
@select="$emit('selectNotification')"
>
</follow>

View File

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