@@ -0,0 +1,6 @@
+version: 2
+updates:
+ - package-ecosystem: "npm"
+ directory: "/"
+ schedule:
+ interval: "daily"
@@ -103,10 +103,12 @@ export function useShortcut(shortcuts, handler) {
...extractedShortcuts.data[shortcutId],
};
+ if (shortcutId) event.preventDefault();
+
if (typeof params.data === 'function') {
params.data(params);
- } else {
- handler?.(params);
+ } else if (handler) {
+ handler(params);
}
const addShortcutData = ({ combo, id, readable, ...rest }) => {