@lvce-editor/renderer-process 30.81.8 → 30.82.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.
|
@@ -2743,6 +2743,13 @@ const unwrapItemFile = async item => {
|
|
|
2743
2743
|
const nativeFile = item.getAsFile();
|
|
2744
2744
|
// @ts-ignore
|
|
2745
2745
|
const fileHandle = await item.getAsFileSystemHandle();
|
|
2746
|
+
if (!fileHandle) {
|
|
2747
|
+
return {
|
|
2748
|
+
kind: 'file-legacy',
|
|
2749
|
+
type: item.type,
|
|
2750
|
+
value: nativeFile
|
|
2751
|
+
};
|
|
2752
|
+
}
|
|
2746
2753
|
return {
|
|
2747
2754
|
file: nativeFile,
|
|
2748
2755
|
kind: 'file',
|
|
@@ -7983,7 +7990,7 @@ const getKeyBindingIdentifier = event => {
|
|
|
7983
7990
|
const modifierControl = ctrlKey || metaKey ? CtrlCmd : 0;
|
|
7984
7991
|
const modifierShift = shiftKey ? Shift : 0;
|
|
7985
7992
|
const modifierAlt = altKey ? Alt : 0;
|
|
7986
|
-
const normalizedKey = normalizeKey(key, code);
|
|
7993
|
+
const normalizedKey = shiftKey && key.length === 1 && !/[a-z0-9]/i.test(key) && code ? code : normalizeKey(key, code);
|
|
7987
7994
|
const keyCode = getKeyCode(normalizedKey);
|
|
7988
7995
|
const identifier = modifierControl | modifierShift | modifierAlt | keyCode;
|
|
7989
7996
|
return identifier;
|