Add keyboard shortcut doc

This commit is contained in:
syuilo
2018-09-19 08:36:06 +09:00
parent 8414db57f0
commit a9a2f4820b
3 changed files with 139 additions and 1 deletions

View File

@ -1,3 +1,24 @@
<template>
<router-view id="app"></router-view>
<router-view id="app" v-hotkey.global="keymap"></router-view>
</template>
<script lang="ts">
import Vue from 'vue';
import { url, lang } from './config';
export default Vue.extend({
computed: {
keymap(): any {
return {
'h|slash': this.help
};
}
},
methods: {
help() {
window.open(`${url}/docs/${lang}/keyboard-shortcut`, '_blank');
}
}
});
</script>