キーボードショートカットを強化するなど

This commit is contained in:
syuilo 2018-09-18 05:35:06 +09:00
parent e765be4205
commit 31ce3aa312
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
27 changed files with 355 additions and 100 deletions

View file

@ -1,6 +1,6 @@
<template>
<mk-ui>
<mk-home :mode="mode" @loaded="loaded"/>
<mk-home :mode="mode" @loaded="loaded" ref="home" v-hotkey.global="keymap"/>
</mk-ui>
</template>
@ -15,6 +15,13 @@ export default Vue.extend({
default: 'timeline'
}
},
computed: {
keymap(): any {
return {
't': this.focus
};
}
},
mounted() {
document.title = (this as any).os.instanceName;
@ -23,6 +30,9 @@ export default Vue.extend({
methods: {
loaded() {
Progress.done();
},
focus() {
this.$refs.home.focus();
}
}
});