Skip to content

Commit

Permalink
All Games: Don't fatal error when attempting to rebind key-delete-down
Browse files Browse the repository at this point in the history
Regardless of the fact this key has a special case handler in the menu
it is inappropriate to shutdown simply because the user attempts to
bind it to another control/event.
  • Loading branch information
danij-deng committed Oct 29, 2014
1 parent 2ade011 commit 29b482e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/m_ctrl.cpp
Expand Up @@ -654,10 +654,10 @@ int InputBindingWidget::handleEvent_Privileged(event_t *ev)
{
bindContext = binds->bindContext;

// The Delete key in the Menu context is reserved for deleting bindings
if((!strcmp(bindContext, "menu") || !strcmp(bindContext, "shortcut")) &&
!strcmp(symbol + 5, "key-delete-down"))
{
throw Error("InputBindingWidget::handleEvent_Priviledged", "The Delete key in the Menu context is reserved for deleting bindings");
return false;
}
}
Expand Down

0 comments on commit 29b482e

Please sign in to comment.