@lvce-editor/main-process 6.35.0 → 6.36.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.
- package/dist/mainProcessMain.js +29 -5
- package/package.json +1 -1
package/dist/mainProcessMain.js
CHANGED
|
@@ -4082,6 +4082,7 @@ const PageFaviconUpdated = 'page-favicon-updated';
|
|
|
4082
4082
|
const Destroyed = 'destroyed';
|
|
4083
4083
|
const BeforeInputEvent = 'before-input-event';
|
|
4084
4084
|
const Login = 'login';
|
|
4085
|
+
const AudioStateChanged = 'audio-state-changed';
|
|
4085
4086
|
|
|
4086
4087
|
const Deny = 'deny';
|
|
4087
4088
|
|
|
@@ -6253,14 +6254,14 @@ const handleWebContentsViewZoomKeyBinding = (webContentsId, input) => {
|
|
|
6253
6254
|
return true;
|
|
6254
6255
|
};
|
|
6255
6256
|
|
|
6256
|
-
const key$
|
|
6257
|
-
const attach$
|
|
6257
|
+
const key$9 = 'before-input';
|
|
6258
|
+
const attach$b = (webContents, listener) => {
|
|
6258
6259
|
webContents.on(BeforeInputEvent, listener);
|
|
6259
6260
|
};
|
|
6260
|
-
const detach$
|
|
6261
|
+
const detach$9 = (webContents, listener) => {
|
|
6261
6262
|
webContents.off(BeforeInputEvent, listener);
|
|
6262
6263
|
};
|
|
6263
|
-
const handler$
|
|
6264
|
+
const handler$9 = (event, input, webContentsId) => {
|
|
6264
6265
|
if (input.type !== KeyDown) {
|
|
6265
6266
|
return {
|
|
6266
6267
|
messages: [],
|
|
@@ -6293,6 +6294,28 @@ const handler$8 = (event, input, webContentsId) => {
|
|
|
6293
6294
|
};
|
|
6294
6295
|
|
|
6295
6296
|
const ElectronBrowserViewEventListenerBeforeInput = {
|
|
6297
|
+
__proto__: null,
|
|
6298
|
+
attach: attach$b,
|
|
6299
|
+
detach: detach$9,
|
|
6300
|
+
handler: handler$9,
|
|
6301
|
+
key: key$9
|
|
6302
|
+
};
|
|
6303
|
+
|
|
6304
|
+
const key$8 = AudioStateChanged;
|
|
6305
|
+
const attach$a = (webContents, listener) => {
|
|
6306
|
+
webContents.on(AudioStateChanged, listener);
|
|
6307
|
+
};
|
|
6308
|
+
const detach$8 = (webContents, listener) => {
|
|
6309
|
+
webContents.off(AudioStateChanged, listener);
|
|
6310
|
+
};
|
|
6311
|
+
const handler$8 = event => {
|
|
6312
|
+
return {
|
|
6313
|
+
messages: [['handleAudioStateChanged', event.audible]],
|
|
6314
|
+
result: undefined
|
|
6315
|
+
};
|
|
6316
|
+
};
|
|
6317
|
+
|
|
6318
|
+
const ElectronBrowserViewEventListenerAudioStateChanged = {
|
|
6296
6319
|
__proto__: null,
|
|
6297
6320
|
attach: attach$a,
|
|
6298
6321
|
detach: detach$8,
|
|
@@ -6527,6 +6550,7 @@ const ElectronBrowserViewEventListenerWindowOpen = {
|
|
|
6527
6550
|
|
|
6528
6551
|
const ElectronBrowserViewEventListeners = {
|
|
6529
6552
|
__proto__: null,
|
|
6553
|
+
audioStateChanged: ElectronBrowserViewEventListenerAudioStateChanged,
|
|
6530
6554
|
beforeInput: ElectronBrowserViewEventListenerBeforeInput,
|
|
6531
6555
|
contextMenu: ElectronBrowserViewEventListenerContextMenu,
|
|
6532
6556
|
destroyed: ElectronBrowserViewEventListenerDestroyed,
|
|
@@ -7058,7 +7082,7 @@ const copyImageAt = (view, x, y) => {
|
|
|
7058
7082
|
} = view;
|
|
7059
7083
|
webContents.copyImageAt(x, y);
|
|
7060
7084
|
};
|
|
7061
|
-
const setFallThroughKeyBindings = fallthroughKeyBindings => {
|
|
7085
|
+
const setFallThroughKeyBindings = (_view, fallthroughKeyBindings) => {
|
|
7062
7086
|
setFallthroughKeyBindings(fallthroughKeyBindings);
|
|
7063
7087
|
};
|
|
7064
7088
|
|