Strange behavior when assigning media keys to extension shortcuts

Description of the issue:
When a shortcut for an extension is assigned to a media key on the keyboard (e.g. stop, play/pause, skip track left/right), the shortcut is not triggered when the media key is pressed. Furthermore, it appears to be impossible to assign a shortcut to a key combination that includes a modifier and a media key.

How can this issue be reproduced?

  1. Install any extension that has shortcuts defined
  2. Go to brave://extensions/shortcuts
  3. Assign a non-media key combination, such as Alt+Shift+1, to any shortcut
  4. Press the assigned combination on the keyboard to confirm the shortcut triggers as expected
  5. Attempt to reassign the shortcut to Alt+Shift+Play/Pause, or any other combination of modifiers and media keys. Note flickering (but failure to assign) in the “Type a shortcut” box.
  6. Reassign the shortcut to Play/Pause (or any other media key) with no modifiers.
  7. Press the assigned key, note the shortcut is not triggered.

Expected result:
Pressing the media key should trigger the shortcut to which it is assigned.

Brave Version( check About Brave):

Additional Information:

  • Confirmed in both Windows 10 and Ubuntu 16.04.
  • Occurs regardless of Global vs. In Brave setting.
  • Occurs regardless of brave://flags/#hardware-media-key-handling setting

Let me know if there’s any other information I can provide to help. Thanks in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.