We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87d0770 commit 0b16849Copy full SHA for 0b16849
1 file changed
resources/js/components/entries/Listing.vue
@@ -72,6 +72,7 @@ export default {
72
items: null,
73
page: null,
74
perPage: null,
75
+ saveKeyBinding: null,
76
};
77
},
78
@@ -86,7 +87,20 @@ export default {
86
87
88
89
- methods: {
90
+ created() {
91
+ this.saveKeyBinding = this.$keys.bindGlobal(['mod+s'], (e) => {
92
+ if (this.reordering) {
93
+ e.preventDefault();
94
+ this.saveOrder();
95
+ }
96
+ });
97
+ },
98
+
99
+ beforeUnmount() {
100
+ this.saveKeyBinding.destroy();
101
102
103
+ methods: {
104
requestComplete({ items, parameters, activeFilters }) {
105
this.items = items;
106
this.page = parameters.page;
0 commit comments