mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-02 16:58:43 +09:00
Add new shortcut
This commit is contained in:
parent
a23b8cebbc
commit
609d68933e
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="account">
|
<div class="account" v-hotkey.global="keymap">
|
||||||
<button class="header" :data-active="isOpen" @click="toggle">
|
<button class="header" :data-active="isOpen" @click="toggle">
|
||||||
<span class="username">{{ $store.state.i.username }}<template v-if="!isOpen">%fa:angle-down%</template><template v-if="isOpen">%fa:angle-up%</template></span>
|
<span class="username">{{ $store.state.i.username }}<template v-if="!isOpen">%fa:angle-down%</template><template v-if="isOpen">%fa:angle-up%</template></span>
|
||||||
<mk-avatar class="avatar" :user="$store.state.i"/>
|
<mk-avatar class="avatar" :user="$store.state.i"/>
|
||||||
@ -63,6 +63,13 @@ export default Vue.extend({
|
|||||||
isOpen: false
|
isOpen: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
keymap(): any {
|
||||||
|
return {
|
||||||
|
'a|m': this.toggle
|
||||||
|
};
|
||||||
|
}
|
||||||
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.close();
|
this.close();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user