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.");
|
OnFailed("Shortcut is invalid.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GlobalShortcutListener::GetInstance()->RegisterAccelerator(
|
if (!GlobalShortcutListener::GetInstance()->RegisterAccelerator(
|
||||||
accelerator_, this);
|
accelerator_, this))
|
||||||
|
OnFailed("Fail to register the shortcut.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shortcut::Unregister() {
|
void Shortcut::Unregister() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue