@lvce-editor/renderer-process 30.16.0 → 30.17.0

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.
@@ -978,287 +978,6 @@ const ElementTagMap = {
978
978
  getElementTag: getElementTag$1
979
979
  };
980
980
 
981
- const Backspace$1 = 'Backspace';
982
- const Tab$1 = 'Tab';
983
- const Space$1 = ' ';
984
- const Space2 = 'Space';
985
- const Enter$1 = 'Enter';
986
- const Escape$1 = 'Escape';
987
- const PageUp$1 = 'PageUp';
988
- const PageDown$1 = 'PageDown';
989
- const Home$1 = 'Home';
990
- const End$1 = 'End';
991
- const LeftArrow$1 = 'ArrowLeft';
992
- const RightArrow$1 = 'ArrowRight';
993
- const UpArrow$1 = 'ArrowUp';
994
- const DownArrow$1 = 'ArrowDown';
995
- const Insert$1 = 'Insert';
996
- const Delete$1 = 'Delete';
997
- const Digit0$1 = '0';
998
- const Digit1$1 = '1';
999
- const Digit2$1 = '2';
1000
- const Digit3$1 = '3';
1001
- const Digit4$1 = '4';
1002
- const Digit5$1 = '5';
1003
- const Digit6$1 = '6';
1004
- const Digit7$1 = '7';
1005
- const Digit8$1 = '8';
1006
- const Digit9$1 = '9';
1007
- const KeyA$1 = 'a';
1008
- const KeyB$1 = 'b';
1009
- const KeyC$1 = 'c';
1010
- const KeyD$1 = 'd';
1011
- const KeyE$1 = 'e';
1012
- const KeyF$1 = 'f';
1013
- const KeyG$1 = 'g';
1014
- const KeyH$1 = 'h';
1015
- const KeyI$1 = 'i';
1016
- const KeyJ$1 = 'j';
1017
- const KeyK$1 = 'k';
1018
- const KeyL$1 = 'l';
1019
- const KeyM$1 = 'm';
1020
- const KeyN$1 = 'n';
1021
- const KeyO$1 = 'o';
1022
- const KeyP$1 = 'p';
1023
- const KeyQ$1 = 'q';
1024
- const KeyR$1 = 'r';
1025
- const KeyS$1 = 's';
1026
- const KeyT$1 = 't';
1027
- const KeyU$1 = 'u';
1028
- const KeyV$1 = 'v';
1029
- const KeyW$1 = 'w';
1030
- const KeyX$1 = 'x';
1031
- const KeyY$1 = 'y';
1032
- const KeyZ$1 = 'z';
1033
- const F1$1 = 'F1';
1034
- const F2$1 = 'F2';
1035
- const F3$1 = 'F3';
1036
- const F4$1 = 'F4';
1037
- const F5$1 = 'F5';
1038
- const F6$1 = 'F6';
1039
- const F7$1 = 'F7';
1040
- const F8$1 = 'F8';
1041
- const F9$1 = 'F9';
1042
- const F10$1 = 'F10';
1043
- const F11$1 = 'F11';
1044
- const F12$1 = 'F12';
1045
- const F13$1 = 'F13';
1046
- const F14$1 = 'F14';
1047
- const F15$1 = 'F15';
1048
- const F16$1 = 'F16';
1049
- const F17$1 = 'F17';
1050
- const F18$1 = 'F18';
1051
- const F19$1 = 'F19';
1052
- const F20$1 = 'F20';
1053
- const F21$1 = 'F21';
1054
- const F22$1 = 'F22';
1055
- const F23$1 = 'F23';
1056
- const F24$1 = 'F24';
1057
- const SemiColon$1 = ';';
1058
- const Equal$1 = '=';
1059
- const Comma$1 = ',';
1060
- const Minus$1 = '-';
1061
- const Period$1 = '.';
1062
- const Slash$1 = '/';
1063
- const Backquote$1 = '`';
1064
- const Backquote2 = 'Backquote';
1065
- const BracketLeft$1 = '[';
1066
- const Backslash$1 = '\\';
1067
- const BracketRight$1 = ']';
1068
- const Quote$1 = `'`;
1069
- const Star$1 = '*';
1070
- const Plus$1 = '+';
1071
-
1072
- const Unknown = 0;
1073
- const Backspace = 1;
1074
- const Tab = 2;
1075
- const Enter = 3;
1076
- const Escape = 8;
1077
- const Space = 9;
1078
- const PageUp = 10;
1079
- const PageDown = 11;
1080
- const End = 255;
1081
- const Home = 12;
1082
- const LeftArrow = 13;
1083
- const UpArrow = 14;
1084
- const RightArrow = 15;
1085
- const DownArrow = 16;
1086
- const Insert = 17;
1087
- const Delete = 18;
1088
- const Digit0 = 19;
1089
- const Digit1 = 20;
1090
- const Digit2 = 21;
1091
- const Digit3 = 22;
1092
- const Digit4 = 23;
1093
- const Digit5 = 24;
1094
- const Digit6 = 25;
1095
- const Digit7 = 26;
1096
- const Digit8 = 27;
1097
- const Digit9 = 28;
1098
- const KeyA = 29;
1099
- const KeyB = 30;
1100
- const KeyC = 31;
1101
- const KeyD = 32;
1102
- const KeyE = 33;
1103
- const KeyF = 34;
1104
- const KeyG = 35;
1105
- const KeyH = 36;
1106
- const KeyI = 37;
1107
- const KeyJ = 38;
1108
- const KeyK = 39;
1109
- const KeyL = 40;
1110
- const KeyM = 41;
1111
- const KeyN = 42;
1112
- const KeyO = 43;
1113
- const KeyP = 44;
1114
- const KeyQ = 45;
1115
- const KeyR = 46;
1116
- const KeyS = 47;
1117
- const KeyT = 48;
1118
- const KeyU = 49;
1119
- const KeyV = 50;
1120
- const KeyW = 51;
1121
- const KeyX = 52;
1122
- const KeyY = 53;
1123
- const KeyZ = 54;
1124
- const F1 = 57;
1125
- const F2 = 58;
1126
- const F3 = 59;
1127
- const F4 = 60;
1128
- const F5 = 61;
1129
- const F6 = 62;
1130
- const F7 = 63;
1131
- const F8 = 64;
1132
- const F9 = 65;
1133
- const F10 = 66;
1134
- const F11 = 67;
1135
- const F12 = 68;
1136
- const F13 = 69;
1137
- const F14 = 70;
1138
- const F15 = 71;
1139
- const F16 = 72;
1140
- const F17 = 72;
1141
- const F18 = 74;
1142
- const F19 = 75;
1143
- const F20 = 76;
1144
- const F21 = 77;
1145
- const F22 = 78;
1146
- const F23 = 79;
1147
- const F24 = 80;
1148
- const SemiColon = 83;
1149
- const Equal = 84;
1150
- const Comma = 85;
1151
- const Minus = 86;
1152
- const Period = 87;
1153
- const Slash = 88;
1154
- const Backquote = 89;
1155
- const BracketLeft = 90;
1156
- const Backslash = 91;
1157
- const BracketRight = 92;
1158
- const Quote = 93;
1159
- const Star = 131;
1160
- const Plus = 132;
1161
-
1162
- const keyCodeMap$1 = {
1163
- [Backquote$1]: Backquote,
1164
- [Backquote2]: Backquote,
1165
- [Backslash$1]: Backslash,
1166
- [Backspace$1]: Backspace,
1167
- [BracketLeft$1]: BracketLeft,
1168
- [BracketRight$1]: BracketRight,
1169
- [Comma$1]: Comma,
1170
- [Delete$1]: Delete,
1171
- [Digit0$1]: Digit0,
1172
- [Digit1$1]: Digit1,
1173
- [Digit2$1]: Digit2,
1174
- [Digit3$1]: Digit3,
1175
- [Digit4$1]: Digit4,
1176
- [Digit5$1]: Digit5,
1177
- [Digit6$1]: Digit6,
1178
- [Digit7$1]: Digit7,
1179
- [Digit8$1]: Digit8,
1180
- [Digit9$1]: Digit9,
1181
- [DownArrow$1]: DownArrow,
1182
- [End$1]: End,
1183
- [Enter$1]: Enter,
1184
- [Equal$1]: Equal,
1185
- [Escape$1]: Escape,
1186
- [F1$1]: F1,
1187
- [F10$1]: F10,
1188
- [F11$1]: F11,
1189
- [F12$1]: F12,
1190
- [F13$1]: F13,
1191
- [F14$1]: F14,
1192
- [F15$1]: F15,
1193
- [F16$1]: F16,
1194
- [F17$1]: F17,
1195
- [F18$1]: F18,
1196
- [F19$1]: F19,
1197
- [F2$1]: F2,
1198
- [F20$1]: F20,
1199
- [F21$1]: F21,
1200
- [F22$1]: F22,
1201
- [F23$1]: F23,
1202
- [F24$1]: F24,
1203
- [F3$1]: F3,
1204
- [F4$1]: F4,
1205
- [F5$1]: F5,
1206
- [F6$1]: F6,
1207
- [F7$1]: F7,
1208
- [F8$1]: F8,
1209
- [F9$1]: F9,
1210
- [Home$1]: Home,
1211
- [Insert$1]: Insert,
1212
- [KeyA$1]: KeyA,
1213
- [KeyB$1]: KeyB,
1214
- [KeyC$1]: KeyC,
1215
- [KeyD$1]: KeyD,
1216
- [KeyE$1]: KeyE,
1217
- [KeyF$1]: KeyF,
1218
- [KeyG$1]: KeyG,
1219
- [KeyH$1]: KeyH,
1220
- [KeyI$1]: KeyI,
1221
- [KeyJ$1]: KeyJ,
1222
- [KeyK$1]: KeyK,
1223
- [KeyL$1]: KeyL,
1224
- [KeyM$1]: KeyM,
1225
- [KeyN$1]: KeyN,
1226
- [KeyO$1]: KeyO,
1227
- [KeyP$1]: KeyP,
1228
- [KeyQ$1]: KeyQ,
1229
- [KeyR$1]: KeyR,
1230
- [KeyS$1]: KeyS,
1231
- [KeyT$1]: KeyT,
1232
- [KeyU$1]: KeyU,
1233
- [KeyV$1]: KeyV,
1234
- [KeyW$1]: KeyW,
1235
- [KeyX$1]: KeyX,
1236
- [KeyY$1]: KeyY,
1237
- [KeyZ$1]: KeyZ,
1238
- [LeftArrow$1]: LeftArrow,
1239
- [Minus$1]: Minus,
1240
- [PageDown$1]: PageDown,
1241
- [PageUp$1]: PageUp,
1242
- [Period$1]: Period,
1243
- [Plus$1]: Plus,
1244
- [Quote$1]: Quote,
1245
- [RightArrow$1]: RightArrow,
1246
- [SemiColon$1]: SemiColon,
1247
- [Slash$1]: Slash,
1248
- [Space$1]: Space,
1249
- [Space2]: Space,
1250
- [Star$1]: Star,
1251
- [Tab$1]: Tab,
1252
- [UpArrow$1]: UpArrow
1253
- };
1254
- const getKeyCode = key => {
1255
- return keyCodeMap$1[key] || Unknown;
1256
- };
1257
-
1258
- const CtrlCmd = 1 << 11 >>> 0;
1259
- const Shift = 1 << 10 >>> 0;
1260
- const Alt = 1 << 9 >>> 0;
1261
-
1262
981
  const {
1263
982
  getElementTag
1264
983
  } = ElementTagMap;
@@ -4906,7 +4625,7 @@ const ConditionValues = {
4906
4625
  toHaveText: toHaveText$1
4907
4626
  };
4908
4627
 
4909
- const keyCodeMap = {
4628
+ const keyCodeMap$1 = {
4910
4629
  ' ': {
4911
4630
  code: 'Space',
4912
4631
  keyCode: 32
@@ -4933,8 +4652,8 @@ const keyCodeMap = {
4933
4652
  const getKeyboardOptions = options => {
4934
4653
  const key = options.key || '';
4935
4654
  const normalizedKey = key === 'Space' ? ' ' : key;
4936
- if (keyCodeMap[key]) {
4937
- const mapped = keyCodeMap[key];
4655
+ if (keyCodeMap$1[key]) {
4656
+ const mapped = keyCodeMap$1[key];
4938
4657
  const keyCode = mapped.keyCode;
4939
4658
  return {
4940
4659
  ...options,
@@ -7195,52 +6914,333 @@ const handlePointerDown = event => {
7195
6914
  pointerDownFunction(event);
7196
6915
  };
7197
6916
 
7198
- const ViewletkeyBindingsEvents = {
7199
- __proto__: null,
7200
- handlePointerDown,
7201
- handleResizerPointerDown,
7202
- handleResizerPointerMove,
7203
- handleResizerPointerUp
7204
- };
6917
+ const ViewletkeyBindingsEvents = {
6918
+ __proto__: null,
6919
+ handlePointerDown,
6920
+ handleResizerPointerDown,
6921
+ handleResizerPointerMove,
6922
+ handleResizerPointerUp
6923
+ };
6924
+
6925
+ const setValue = (state, value) => {
6926
+ const {
6927
+ $Viewlet
6928
+ } = state;
6929
+ const $InputBox = $Viewlet.querySelector(':scope input');
6930
+ $InputBox.value = value;
6931
+ };
6932
+ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
6933
+ const paddingLeft = 15;
6934
+ const {
6935
+ $Viewlet
6936
+ } = state;
6937
+ const $$Resizers = $Viewlet.querySelectorAll(':scope .Resizer');
6938
+ const $Resizer1 = $$Resizers[0];
6939
+ const $Resizer2 = $$Resizers[1];
6940
+ $Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
6941
+ $Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
6942
+ };
6943
+ const Events$2 = ViewletkeyBindingsEvents;
6944
+
6945
+ const ViewletKeyBindings = {
6946
+ __proto__: null,
6947
+ Events: Events$2,
6948
+ setColumnWidths,
6949
+ setScrollBar,
6950
+ setSize,
6951
+ setValue
6952
+ };
6953
+
6954
+ const getSashId = $Target => {
6955
+ if ($Target.id === 'SashPanel') {
6956
+ return 'Panel';
6957
+ }
6958
+ if ($Target.id === 'SashSideBar') {
6959
+ return 'SideBar';
6960
+ }
6961
+ return '';
6962
+ };
6963
+
6964
+ const Backspace$1 = 'Backspace';
6965
+ const Tab$1 = 'Tab';
6966
+ const Space$1 = ' ';
6967
+ const Space2 = 'Space';
6968
+ const Enter$1 = 'Enter';
6969
+ const Escape$1 = 'Escape';
6970
+ const PageUp$1 = 'PageUp';
6971
+ const PageDown$1 = 'PageDown';
6972
+ const Home$1 = 'Home';
6973
+ const End$1 = 'End';
6974
+ const LeftArrow$1 = 'ArrowLeft';
6975
+ const RightArrow$1 = 'ArrowRight';
6976
+ const UpArrow$1 = 'ArrowUp';
6977
+ const DownArrow$1 = 'ArrowDown';
6978
+ const Insert$1 = 'Insert';
6979
+ const Delete$1 = 'Delete';
6980
+ const Digit0$1 = '0';
6981
+ const Digit1$1 = '1';
6982
+ const Digit2$1 = '2';
6983
+ const Digit3$1 = '3';
6984
+ const Digit4$1 = '4';
6985
+ const Digit5$1 = '5';
6986
+ const Digit6$1 = '6';
6987
+ const Digit7$1 = '7';
6988
+ const Digit8$1 = '8';
6989
+ const Digit9$1 = '9';
6990
+ const KeyA$1 = 'a';
6991
+ const KeyB$1 = 'b';
6992
+ const KeyC$1 = 'c';
6993
+ const KeyD$1 = 'd';
6994
+ const KeyE$1 = 'e';
6995
+ const KeyF$1 = 'f';
6996
+ const KeyG$1 = 'g';
6997
+ const KeyH$1 = 'h';
6998
+ const KeyI$1 = 'i';
6999
+ const KeyJ$1 = 'j';
7000
+ const KeyK$1 = 'k';
7001
+ const KeyL$1 = 'l';
7002
+ const KeyM$1 = 'm';
7003
+ const KeyN$1 = 'n';
7004
+ const KeyO$1 = 'o';
7005
+ const KeyP$1 = 'p';
7006
+ const KeyQ$1 = 'q';
7007
+ const KeyR$1 = 'r';
7008
+ const KeyS$1 = 's';
7009
+ const KeyT$1 = 't';
7010
+ const KeyU$1 = 'u';
7011
+ const KeyV$1 = 'v';
7012
+ const KeyW$1 = 'w';
7013
+ const KeyX$1 = 'x';
7014
+ const KeyY$1 = 'y';
7015
+ const KeyZ$1 = 'z';
7016
+ const F1$1 = 'F1';
7017
+ const F2$1 = 'F2';
7018
+ const F3$1 = 'F3';
7019
+ const F4$1 = 'F4';
7020
+ const F5$1 = 'F5';
7021
+ const F6$1 = 'F6';
7022
+ const F7$1 = 'F7';
7023
+ const F8$1 = 'F8';
7024
+ const F9$1 = 'F9';
7025
+ const F10$1 = 'F10';
7026
+ const F11$1 = 'F11';
7027
+ const F12$1 = 'F12';
7028
+ const F13$1 = 'F13';
7029
+ const F14$1 = 'F14';
7030
+ const F15$1 = 'F15';
7031
+ const F16$1 = 'F16';
7032
+ const F17$1 = 'F17';
7033
+ const F18$1 = 'F18';
7034
+ const F19$1 = 'F19';
7035
+ const F20$1 = 'F20';
7036
+ const F21$1 = 'F21';
7037
+ const F22$1 = 'F22';
7038
+ const F23$1 = 'F23';
7039
+ const F24$1 = 'F24';
7040
+ const SemiColon$1 = ';';
7041
+ const Equal$1 = '=';
7042
+ const Comma$1 = ',';
7043
+ const Minus$1 = '-';
7044
+ const Period$1 = '.';
7045
+ const Slash$1 = '/';
7046
+ const Backquote$1 = '`';
7047
+ const Backquote2 = 'Backquote';
7048
+ const BracketLeft$1 = '[';
7049
+ const Backslash$1 = '\\';
7050
+ const BracketRight$1 = ']';
7051
+ const Quote$1 = `'`;
7052
+ const Star$1 = '*';
7053
+ const Plus$1 = '+';
7054
+
7055
+ const Unknown = 0;
7056
+ const Backspace = 1;
7057
+ const Tab = 2;
7058
+ const Enter = 3;
7059
+ const Escape = 8;
7060
+ const Space = 9;
7061
+ const PageUp = 10;
7062
+ const PageDown = 11;
7063
+ const End = 255;
7064
+ const Home = 12;
7065
+ const LeftArrow = 13;
7066
+ const UpArrow = 14;
7067
+ const RightArrow = 15;
7068
+ const DownArrow = 16;
7069
+ const Insert = 17;
7070
+ const Delete = 18;
7071
+ const Digit0 = 19;
7072
+ const Digit1 = 20;
7073
+ const Digit2 = 21;
7074
+ const Digit3 = 22;
7075
+ const Digit4 = 23;
7076
+ const Digit5 = 24;
7077
+ const Digit6 = 25;
7078
+ const Digit7 = 26;
7079
+ const Digit8 = 27;
7080
+ const Digit9 = 28;
7081
+ const KeyA = 29;
7082
+ const KeyB = 30;
7083
+ const KeyC = 31;
7084
+ const KeyD = 32;
7085
+ const KeyE = 33;
7086
+ const KeyF = 34;
7087
+ const KeyG = 35;
7088
+ const KeyH = 36;
7089
+ const KeyI = 37;
7090
+ const KeyJ = 38;
7091
+ const KeyK = 39;
7092
+ const KeyL = 40;
7093
+ const KeyM = 41;
7094
+ const KeyN = 42;
7095
+ const KeyO = 43;
7096
+ const KeyP = 44;
7097
+ const KeyQ = 45;
7098
+ const KeyR = 46;
7099
+ const KeyS = 47;
7100
+ const KeyT = 48;
7101
+ const KeyU = 49;
7102
+ const KeyV = 50;
7103
+ const KeyW = 51;
7104
+ const KeyX = 52;
7105
+ const KeyY = 53;
7106
+ const KeyZ = 54;
7107
+ const F1 = 57;
7108
+ const F2 = 58;
7109
+ const F3 = 59;
7110
+ const F4 = 60;
7111
+ const F5 = 61;
7112
+ const F6 = 62;
7113
+ const F7 = 63;
7114
+ const F8 = 64;
7115
+ const F9 = 65;
7116
+ const F10 = 66;
7117
+ const F11 = 67;
7118
+ const F12 = 68;
7119
+ const F13 = 69;
7120
+ const F14 = 70;
7121
+ const F15 = 71;
7122
+ const F16 = 72;
7123
+ const F17 = 72;
7124
+ const F18 = 74;
7125
+ const F19 = 75;
7126
+ const F20 = 76;
7127
+ const F21 = 77;
7128
+ const F22 = 78;
7129
+ const F23 = 79;
7130
+ const F24 = 80;
7131
+ const SemiColon = 83;
7132
+ const Equal = 84;
7133
+ const Comma = 85;
7134
+ const Minus = 86;
7135
+ const Period = 87;
7136
+ const Slash = 88;
7137
+ const Backquote = 89;
7138
+ const BracketLeft = 90;
7139
+ const Backslash = 91;
7140
+ const BracketRight = 92;
7141
+ const Quote = 93;
7142
+ const Star = 131;
7143
+ const Plus = 132;
7205
7144
 
7206
- const setValue = (state, value) => {
7207
- const {
7208
- $Viewlet
7209
- } = state;
7210
- const $InputBox = $Viewlet.querySelector(':scope input');
7211
- $InputBox.value = value;
7212
- };
7213
- const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
7214
- const paddingLeft = 15;
7215
- const {
7216
- $Viewlet
7217
- } = state;
7218
- const $$Resizers = $Viewlet.querySelectorAll(':scope .Resizer');
7219
- const $Resizer1 = $$Resizers[0];
7220
- const $Resizer2 = $$Resizers[1];
7221
- $Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
7222
- $Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
7145
+ const keyCodeMap = {
7146
+ [Backquote$1]: Backquote,
7147
+ [Backquote2]: Backquote,
7148
+ [Backslash$1]: Backslash,
7149
+ [Backspace$1]: Backspace,
7150
+ [BracketLeft$1]: BracketLeft,
7151
+ [BracketRight$1]: BracketRight,
7152
+ [Comma$1]: Comma,
7153
+ [Delete$1]: Delete,
7154
+ [Digit0$1]: Digit0,
7155
+ [Digit1$1]: Digit1,
7156
+ [Digit2$1]: Digit2,
7157
+ [Digit3$1]: Digit3,
7158
+ [Digit4$1]: Digit4,
7159
+ [Digit5$1]: Digit5,
7160
+ [Digit6$1]: Digit6,
7161
+ [Digit7$1]: Digit7,
7162
+ [Digit8$1]: Digit8,
7163
+ [Digit9$1]: Digit9,
7164
+ [DownArrow$1]: DownArrow,
7165
+ [End$1]: End,
7166
+ [Enter$1]: Enter,
7167
+ [Equal$1]: Equal,
7168
+ [Escape$1]: Escape,
7169
+ [F1$1]: F1,
7170
+ [F10$1]: F10,
7171
+ [F11$1]: F11,
7172
+ [F12$1]: F12,
7173
+ [F13$1]: F13,
7174
+ [F14$1]: F14,
7175
+ [F15$1]: F15,
7176
+ [F16$1]: F16,
7177
+ [F17$1]: F17,
7178
+ [F18$1]: F18,
7179
+ [F19$1]: F19,
7180
+ [F2$1]: F2,
7181
+ [F20$1]: F20,
7182
+ [F21$1]: F21,
7183
+ [F22$1]: F22,
7184
+ [F23$1]: F23,
7185
+ [F24$1]: F24,
7186
+ [F3$1]: F3,
7187
+ [F4$1]: F4,
7188
+ [F5$1]: F5,
7189
+ [F6$1]: F6,
7190
+ [F7$1]: F7,
7191
+ [F8$1]: F8,
7192
+ [F9$1]: F9,
7193
+ [Home$1]: Home,
7194
+ [Insert$1]: Insert,
7195
+ [KeyA$1]: KeyA,
7196
+ [KeyB$1]: KeyB,
7197
+ [KeyC$1]: KeyC,
7198
+ [KeyD$1]: KeyD,
7199
+ [KeyE$1]: KeyE,
7200
+ [KeyF$1]: KeyF,
7201
+ [KeyG$1]: KeyG,
7202
+ [KeyH$1]: KeyH,
7203
+ [KeyI$1]: KeyI,
7204
+ [KeyJ$1]: KeyJ,
7205
+ [KeyK$1]: KeyK,
7206
+ [KeyL$1]: KeyL,
7207
+ [KeyM$1]: KeyM,
7208
+ [KeyN$1]: KeyN,
7209
+ [KeyO$1]: KeyO,
7210
+ [KeyP$1]: KeyP,
7211
+ [KeyQ$1]: KeyQ,
7212
+ [KeyR$1]: KeyR,
7213
+ [KeyS$1]: KeyS,
7214
+ [KeyT$1]: KeyT,
7215
+ [KeyU$1]: KeyU,
7216
+ [KeyV$1]: KeyV,
7217
+ [KeyW$1]: KeyW,
7218
+ [KeyX$1]: KeyX,
7219
+ [KeyY$1]: KeyY,
7220
+ [KeyZ$1]: KeyZ,
7221
+ [LeftArrow$1]: LeftArrow,
7222
+ [Minus$1]: Minus,
7223
+ [PageDown$1]: PageDown,
7224
+ [PageUp$1]: PageUp,
7225
+ [Period$1]: Period,
7226
+ [Plus$1]: Plus,
7227
+ [Quote$1]: Quote,
7228
+ [RightArrow$1]: RightArrow,
7229
+ [SemiColon$1]: SemiColon,
7230
+ [Slash$1]: Slash,
7231
+ [Space$1]: Space,
7232
+ [Space2]: Space,
7233
+ [Star$1]: Star,
7234
+ [Tab$1]: Tab,
7235
+ [UpArrow$1]: UpArrow
7223
7236
  };
7224
- const Events$2 = ViewletkeyBindingsEvents;
7225
-
7226
- const ViewletKeyBindings = {
7227
- __proto__: null,
7228
- Events: Events$2,
7229
- setColumnWidths,
7230
- setScrollBar,
7231
- setSize,
7232
- setValue
7237
+ const getKeyCode = key => {
7238
+ return keyCodeMap[key] || Unknown;
7233
7239
  };
7234
7240
 
7235
- const getSashId = $Target => {
7236
- if ($Target.id === 'SashPanel') {
7237
- return 'Panel';
7238
- }
7239
- if ($Target.id === 'SashSideBar') {
7240
- return 'SideBar';
7241
- }
7242
- return '';
7243
- };
7241
+ const CtrlCmd = 1 << 11 >>> 0;
7242
+ const Shift = 1 << 10 >>> 0;
7243
+ const Alt = 1 << 9 >>> 0;
7244
7244
 
7245
7245
  const normalizeKey = (key, code) => {
7246
7246
  if (key.length === 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.16.0",
3
+ "version": "30.17.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"