@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.
- package/dist/rendererProcessMain.js +14 -1
- package/package.json +1 -1
|
@@ -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);
|