Open profile using shortcut in follow notification
This commit is contained in:
parent
555e28bff3
commit
8e0bfbe1d4
|
@ -2,7 +2,7 @@
|
||||||
<div
|
<div
|
||||||
class="follow"
|
class="follow"
|
||||||
tabIndex="0"
|
tabIndex="0"
|
||||||
v-shortkey="shortcutEnabled ? {next: ['j'], prev: ['k']} : {}"
|
v-shortkey="shortcutEnabled ? {next: ['j'], prev: ['k'], profile: ['p']} : {}"
|
||||||
@shortkey="handleStatusControl"
|
@shortkey="handleStatusControl"
|
||||||
ref="status"
|
ref="status"
|
||||||
@click="$emit('select')"
|
@click="$emit('select')"
|
||||||
|
@ -84,6 +84,9 @@ export default {
|
||||||
case 'prev':
|
case 'prev':
|
||||||
this.$emit('focusPrev')
|
this.$emit('focusPrev')
|
||||||
break
|
break
|
||||||
|
case 'profile':
|
||||||
|
this.openUser(this.message.account)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue