Don't check AXAPIEnabled when initializing the shortcuts, fixes media keys not working on OS X.
Fixes issue #3958.
This commit is contained in:
parent
f34734443b
commit
5b2e4419ae
|
@ -89,15 +89,11 @@ bool MacGlobalShortcutBackend::DoRegister() {
|
|||
// Always enable media keys.
|
||||
mac::SetShortcutHandler(this);
|
||||
|
||||
if (AXAPIEnabled()) {
|
||||
for (const GlobalShortcuts::Shortcut& shortcut :
|
||||
manager_->shortcuts().values()) {
|
||||
shortcuts_[shortcut.action->shortcut()] = shortcut.action;
|
||||
}
|
||||
return p_->Register();
|
||||
for (const GlobalShortcuts::Shortcut& shortcut :
|
||||
manager_->shortcuts().values()) {
|
||||
shortcuts_[shortcut.action->shortcut()] = shortcut.action;
|
||||
}
|
||||
|
||||
return false;
|
||||
return p_->Register();
|
||||
}
|
||||
|
||||
void MacGlobalShortcutBackend::DoUnregister() {
|
||||
|
|
Loading…
Reference in New Issue