From 91119a261ab61a5c81c254a105568873b95029e3 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Wed, 2 Mar 2022 11:57:23 -0500 Subject: [PATCH] Ignore hardware media keys --- app/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.ts b/app/main.ts index 43207f9be0..5303dc4d36 100644 --- a/app/main.ts +++ b/app/main.ts @@ -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.