Emit failed message when fail to register shortcut.
This commit is contained in:
parent
a8034364ff
commit
ad827eee90
1 changed files with 3 additions and 2 deletions
|
@ -63,8 +63,9 @@ void Shortcut::Register() {
|
|||
OnFailed("Shortcut is invalid.");
|
||||
return;
|
||||
}
|
||||
GlobalShortcutListener::GetInstance()->RegisterAccelerator(
|
||||
accelerator_, this);
|
||||
if (!GlobalShortcutListener::GetInstance()->RegisterAccelerator(
|
||||
accelerator_, this))
|
||||
OnFailed("Fail to register the shortcut.");
|
||||
}
|
||||
|
||||
void Shortcut::Unregister() {
|
||||
|
|
Loading…
Reference in a new issue