Browse Source
Disable left/right shortcut key in input and textarea
pull/489/head
Hiroki Nakayama
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
9 additions and
7 deletions
-
frontend/components/containers/annotation/Paginator.vue
-
frontend/components/molecules/EntityItem.vue
-
frontend/components/organisms/annotation/EntityItemBox.vue
-
frontend/nuxt.config.js
-
frontend/plugins/vue-shortkey.js
|
|
@ -60,9 +60,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import Vue from 'vue' |
|
|
|
import { mapState, mapActions, mapMutations, mapGetters } from 'vuex' |
|
|
|
Vue.use(require('vue-shortkey')) |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
|
|
@ -35,9 +35,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import Vue from 'vue' |
|
|
|
import { idealColor } from '~/plugins/utils.js' |
|
|
|
Vue.use(require('vue-shortkey')) |
|
|
|
|
|
|
|
export default { |
|
|
|
props: { |
|
|
|
|
|
@ -43,9 +43,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import Vue from 'vue' |
|
|
|
import EntityItem from '~/components/molecules/EntityItem' |
|
|
|
Vue.use(require('vue-shortkey')) |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
|
|
|
@ -48,7 +48,8 @@ export default { |
|
|
|
*/ |
|
|
|
plugins: [ |
|
|
|
'~/plugins/filters.js', |
|
|
|
'~/plugins/vue-youtube.js' |
|
|
|
'~/plugins/vue-youtube.js', |
|
|
|
'~/plugins/vue-shortkey.js' |
|
|
|
], |
|
|
|
/* |
|
|
|
** Nuxt.js modules |
|
|
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
import Vue from 'vue' |
|
|
|
const ShortKey = require('vue-shortkey') |
|
|
|
|
|
|
|
// add any custom shortkey config settings here
|
|
|
|
Vue.use(ShortKey, { prevent: ['input', 'textarea'] }) |
|
|
|
|
|
|
|
export default ShortKey |