Don't check AXAPIEnabled when initializing the shortcuts, fixes media keys not working on OS X.

Fixes issue #3958.
This commit is contained in:
Arnaud Bienner 2015-03-15 13:40:27 +01:00
parent f34734443b
commit 5b2e4419ae
1 changed files with 4 additions and 8 deletions

View File

@ -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() {