Ignore hardware media keys
This commit is contained in:
@@ -1395,6 +1395,10 @@ function getAppLocale(): string {
|
|||||||
return getEnvironment() === Environment.Test ? 'en' : app.getLocale();
|
return getEnvironment() === Environment.Test ? 'en' : app.getLocale();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Signal doesn't really use media keys so we set this switch here to unblock
|
||||||
|
// them so that other apps can use them if they need to.
|
||||||
|
app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling');
|
||||||
|
|
||||||
// This method will be called when Electron has finished
|
// This method will be called when Electron has finished
|
||||||
// initialization and is ready to create browser windows.
|
// initialization and is ready to create browser windows.
|
||||||
// Some APIs can only be used after this event occurs.
|
// Some APIs can only be used after this event occurs.
|
||||||
|
Reference in New Issue
Block a user