From 11459edaa096539c8bfcc7c4deab57ef66ff028f Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Sun, 17 Sep 2017 00:36:01 +0200 Subject: [PATCH] Adding keyboard shortcuts --- Modules/Page/Assets/js/components/PageForm.vue | 4 +++- Modules/Page/Assets/js/components/PageTableServerSide.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Modules/Page/Assets/js/components/PageForm.vue b/Modules/Page/Assets/js/components/PageForm.vue index c46e1697c..2556dc2d1 100644 --- a/Modules/Page/Assets/js/components/PageForm.vue +++ b/Modules/Page/Assets/js/components/PageForm.vue @@ -143,6 +143,7 @@ + @@ -150,10 +151,11 @@ import axios from 'axios' import Slugify from '../../../../Core/Assets/js/mixins/Slugify' import TranslationHelper from '../../../../Core/Assets/js/mixins/TranslationHelper' + import ShortcutHelper from '../../../../Core/Assets/js/mixins/ShortcutHelper' import Form from 'form-backend-validation' export default { - mixins: [Slugify, TranslationHelper], + mixins: [Slugify, TranslationHelper, ShortcutHelper], props: { locales: {default: null}, pageTitle: {default: null, String}, diff --git a/Modules/Page/Assets/js/components/PageTableServerSide.vue b/Modules/Page/Assets/js/components/PageTableServerSide.vue index 15e55a9f6..bc98ece9d 100644 --- a/Modules/Page/Assets/js/components/PageTableServerSide.vue +++ b/Modules/Page/Assets/js/components/PageTableServerSide.vue @@ -71,6 +71,7 @@ + @@ -78,11 +79,12 @@ import axios from 'axios' import _ from "lodash"; import TranslationHelper from '../../../../Core/Assets/js/mixins/TranslationHelper' + import ShortcutHelper from '../../../../Core/Assets/js/mixins/ShortcutHelper' let data; export default { - mixins: [TranslationHelper], + mixins: [TranslationHelper, ShortcutHelper], data() { return { data,