diff --git a/src/app/commands/cmd_keyboard_shortcuts.cpp b/src/app/commands/cmd_keyboard_shortcuts.cpp index 4c1294363..d859dd695 100644 --- a/src/app/commands/cmd_keyboard_shortcuts.cpp +++ b/src/app/commands/cmd_keyboard_shortcuts.cpp @@ -86,14 +86,19 @@ private: this->window()->layout(); } - void onDeleteAccel(int index) - { - if (Alert::show("Warning" - "<accels()[index]; + + if (Alert::show( + "Warning" + "<disableAccel(m_key->accels()[index]); + m_key->disableAccel(accel); window()->layout(); }