refs #750 Switch focus between Follow notification and Account Profile
This commit is contained in:
parent
70638f6fab
commit
68b149c8ee
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue