@lvce-editor/renderer-process 30.32.0 → 30.32.2

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);
@@ -8227,15 +8244,11 @@ const isInsideTitleBarMenu = $Element => {
8227
8244
  };
8228
8245
  const handleFocusOut = event => {
8229
8246
  const {
8230
- relatedTarget,
8231
- target
8247
+ relatedTarget
8232
8248
  } = event;
8233
8249
  if (relatedTarget && isInsideTitleBarMenu(relatedTarget)) {
8234
8250
  return;
8235
8251
  }
8236
- if (target && isInsideTitleBarMenu(target)) {
8237
- return;
8238
- }
8239
8252
  const uid = fromEvent(event);
8240
8253
  closeMenu$1(uid);
8241
8254
  };
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.2",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"