Ignore hardware media keys

This commit is contained in:
Josh Perez 2022-03-02 11:57:23 -05:00 committed by GitHub
parent e7b4b9015c
commit 91119a261a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1395,6 +1395,10 @@ function getAppLocale(): string {
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
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.