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 <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
} }
} }
} }