mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
SDA-3219 Disabling aux click (#1369)
This commit is contained in:
parent
2394db9278
commit
580c87fbab
@ -108,7 +108,7 @@ export const DEFAULT_WELCOME_SCREEN_HEIGHT: number = 333;
|
|||||||
export const TITLE_BAR_HEIGHT: number = 32;
|
export const TITLE_BAR_HEIGHT: number = 32;
|
||||||
export const IS_SAND_BOXED: boolean = true;
|
export const IS_SAND_BOXED: boolean = true;
|
||||||
export const IS_NODE_INTEGRATION_ENABLED: boolean = false;
|
export const IS_NODE_INTEGRATION_ENABLED: boolean = false;
|
||||||
|
export const AUX_CLICK = 'Auxclick';
|
||||||
// Timeout on restarting SDA in case it's stuck
|
// Timeout on restarting SDA in case it's stuck
|
||||||
const LISTEN_TIMEOUT: number = 25 * 1000;
|
const LISTEN_TIMEOUT: number = 25 * 1000;
|
||||||
|
|
||||||
@ -741,6 +741,7 @@ export class WindowHandler {
|
|||||||
nodeIntegration: IS_NODE_INTEGRATION_ENABLED,
|
nodeIntegration: IS_NODE_INTEGRATION_ENABLED,
|
||||||
preload: path.join(__dirname, '../renderer/_preload-component.js'),
|
preload: path.join(__dirname, '../renderer/_preload-component.js'),
|
||||||
devTools: isDevEnv,
|
devTools: isDevEnv,
|
||||||
|
disableBlinkFeatures: AUX_CLICK,
|
||||||
},
|
},
|
||||||
}) as ICustomBrowserView;
|
}) as ICustomBrowserView;
|
||||||
const titleBarWindowUrl = format({
|
const titleBarWindowUrl = format({
|
||||||
@ -2195,6 +2196,7 @@ export class WindowHandler {
|
|||||||
contextIsolation: this.contextIsolation,
|
contextIsolation: this.contextIsolation,
|
||||||
backgroundThrottling: this.backgroundThrottling,
|
backgroundThrottling: this.backgroundThrottling,
|
||||||
enableRemoteModule: true,
|
enableRemoteModule: true,
|
||||||
|
disableBlinkFeatures: AUX_CLICK,
|
||||||
},
|
},
|
||||||
...webPreferences,
|
...webPreferences,
|
||||||
};
|
};
|
||||||
|
@ -35,6 +35,7 @@ import { memoryMonitor } from './memory-monitor';
|
|||||||
import { screenSnippet } from './screen-snippet-handler';
|
import { screenSnippet } from './screen-snippet-handler';
|
||||||
import { updateAlwaysOnTop } from './window-actions';
|
import { updateAlwaysOnTop } from './window-actions';
|
||||||
import {
|
import {
|
||||||
|
AUX_CLICK,
|
||||||
DEFAULT_HEIGHT,
|
DEFAULT_HEIGHT,
|
||||||
DEFAULT_WIDTH,
|
DEFAULT_WIDTH,
|
||||||
ICustomBrowserView,
|
ICustomBrowserView,
|
||||||
@ -189,6 +190,7 @@ export const createComponentWindow = (
|
|||||||
nodeIntegration: IS_NODE_INTEGRATION_ENABLED,
|
nodeIntegration: IS_NODE_INTEGRATION_ENABLED,
|
||||||
preload: path.join(__dirname, '../renderer/_preload-component.js'),
|
preload: path.join(__dirname, '../renderer/_preload-component.js'),
|
||||||
devTools: isDevEnv,
|
devTools: isDevEnv,
|
||||||
|
disableBlinkFeatures: AUX_CLICK,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1127,6 +1129,7 @@ export const loadBrowserViews = async (
|
|||||||
nodeIntegration: IS_NODE_INTEGRATION_ENABLED,
|
nodeIntegration: IS_NODE_INTEGRATION_ENABLED,
|
||||||
preload: path.join(__dirname, '../renderer/_preload-component.js'),
|
preload: path.join(__dirname, '../renderer/_preload-component.js'),
|
||||||
devTools: isDevEnv,
|
devTools: isDevEnv,
|
||||||
|
disableBlinkFeatures: AUX_CLICK,
|
||||||
},
|
},
|
||||||
}) as ICustomBrowserView;
|
}) as ICustomBrowserView;
|
||||||
const mainWindowBounds = windowHandler.getMainWindow()?.getBounds();
|
const mainWindowBounds = windowHandler.getMainWindow()?.getBounds();
|
||||||
|
@ -7,6 +7,7 @@ import {
|
|||||||
} from '../app/analytics-handler';
|
} from '../app/analytics-handler';
|
||||||
import { config } from '../app/config-handler';
|
import { config } from '../app/config-handler';
|
||||||
import {
|
import {
|
||||||
|
AUX_CLICK,
|
||||||
IS_NODE_INTEGRATION_ENABLED,
|
IS_NODE_INTEGRATION_ENABLED,
|
||||||
IS_SAND_BOXED,
|
IS_SAND_BOXED,
|
||||||
} from '../app/window-handler';
|
} from '../app/window-handler';
|
||||||
@ -624,6 +625,7 @@ class Notification extends NotificationHandler {
|
|||||||
sandbox: IS_SAND_BOXED,
|
sandbox: IS_SAND_BOXED,
|
||||||
nodeIntegration: IS_NODE_INTEGRATION_ENABLED,
|
nodeIntegration: IS_NODE_INTEGRATION_ENABLED,
|
||||||
devTools: true,
|
devTools: true,
|
||||||
|
disableBlinkFeatures: AUX_CLICK,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user