@lvce-editor/renderer-process 30.46.4 → 30.46.5

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.
@@ -7793,8 +7793,21 @@ const isNativeButtonActivation = event => {
7793
7793
  }
7794
7794
  return target instanceof HTMLButtonElement && target.role !== MenuItem && (key === 'Enter' || key === ' ');
7795
7795
  };
7796
+ const isTerminalTextInput = event => {
7797
+ const {
7798
+ altKey,
7799
+ ctrlKey,
7800
+ key,
7801
+ metaKey,
7802
+ target
7803
+ } = event;
7804
+ if (altKey || ctrlKey || metaKey || key.length !== 1) {
7805
+ return false;
7806
+ }
7807
+ return target instanceof Element && Boolean(target.closest('.XtermTerminal'));
7808
+ };
7796
7809
  const handleKeyDown$1 = event => {
7797
- if (isNativeButtonActivation(event)) {
7810
+ if (isNativeButtonActivation(event) || isTerminalTextInput(event)) {
7798
7811
  return;
7799
7812
  }
7800
7813
  const identifier = getKeyBindingIdentifier(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.46.4",
3
+ "version": "30.46.5",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"