Open profile using shortcut in follow notification

This commit is contained in:
AkiraFukushima 2018-09-10 01:01:38 +09:00
parent 555e28bff3
commit 8e0bfbe1d4
1 changed files with 4 additions and 1 deletions

View File

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