Add new shortcut
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| <template> | ||||
| <div class="account"> | ||||
| <div class="account" v-hotkey.global="keymap"> | ||||
| 	<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> | ||||
| 		<mk-avatar class="avatar" :user="$store.state.i"/> | ||||
| @@ -63,6 +63,13 @@ export default Vue.extend({ | ||||
| 			isOpen: false | ||||
| 		}; | ||||
| 	}, | ||||
| 	computed: { | ||||
| 		keymap(): any { | ||||
| 			return { | ||||
| 				'a|m': this.toggle | ||||
| 			}; | ||||
| 		} | ||||
| 	}, | ||||
| 	beforeDestroy() { | ||||
| 		this.close(); | ||||
| 	}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo