versacall-core-library-react 2.0.49 → 2.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -95,7 +95,10 @@ function CoreToolbar(props) {
|
|
|
95
95
|
e.preventDefault();
|
|
96
96
|
|
|
97
97
|
if (!props.saveDisabled) {
|
|
98
|
+
console.log('calling save');
|
|
98
99
|
props.handleSave();
|
|
100
|
+
} else {
|
|
101
|
+
console.log('save disabled');
|
|
99
102
|
}
|
|
100
103
|
/* } else if (e.altKey && e.keyCode === 115) {
|
|
101
104
|
// ALT+F4
|
|
@@ -111,14 +114,16 @@ function CoreToolbar(props) {
|
|
|
111
114
|
} */
|
|
112
115
|
|
|
113
116
|
}
|
|
117
|
+
} else {
|
|
118
|
+
console.log('hotkeys disabled');
|
|
114
119
|
}
|
|
115
120
|
}, []);
|
|
116
121
|
|
|
117
122
|
_react.default.useEffect(function () {
|
|
118
|
-
|
|
123
|
+
document.addEventListener('keydown', handleKeyDown); // cleanup
|
|
119
124
|
|
|
120
125
|
return function () {
|
|
121
|
-
|
|
126
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
122
127
|
};
|
|
123
128
|
}, [handleKeyDown]);
|
|
124
129
|
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"versacall": {
|
|
3
3
|
"title": "Versacall Core Library React",
|
|
4
4
|
"applicationType": "react-library",
|
|
5
|
-
"build":
|
|
5
|
+
"build": 50
|
|
6
6
|
},
|
|
7
7
|
"name": "versacall-core-library-react",
|
|
8
|
-
"version": "2.0.
|
|
8
|
+
"version": "2.0.50",
|
|
9
9
|
"description": "Versacall Core Library",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"module": "dist/index.js",
|