@lvce-editor/renderer-process 30.32.0 → 30.32.1

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.
@@ -7340,7 +7340,24 @@ const isMatchingKeyBinding = (identifiers, identifier) => {
7340
7340
  const handleMatchingKeyBinding = identifier => {
7341
7341
  send(/* KeyBindings.handleKeyBinding */'KeyBindings.handleKeyBinding', /* keyBinding */identifier);
7342
7342
  };
7343
+ const isNativeButtonActivation = event => {
7344
+ const {
7345
+ altKey,
7346
+ ctrlKey,
7347
+ key,
7348
+ metaKey,
7349
+ shiftKey,
7350
+ target
7351
+ } = event;
7352
+ if (altKey || ctrlKey || metaKey || shiftKey) {
7353
+ return false;
7354
+ }
7355
+ return target instanceof HTMLButtonElement && (key === 'Enter' || key === ' ');
7356
+ };
7343
7357
  const handleKeyDown$1 = event => {
7358
+ if (isNativeButtonActivation(event)) {
7359
+ return;
7360
+ }
7344
7361
  const identifier = getKeyBindingIdentifier(event);
7345
7362
  const identifiers = getIdentifiers();
7346
7363
  const matchingKeyBinding = isMatchingKeyBinding(identifiers, identifier);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.32.0",
3
+ "version": "30.32.1",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"