Browse Source

Prevent space from selecting during text input

pull/556/head^2
Anders Jenbo 6 years ago
parent
commit
4c1108c1da
  1. 6
      SourceX/controls/menu_controls.cpp

6
SourceX/controls/menu_controls.cpp

@ -66,8 +66,12 @@ MenuAction GetMenuAction(const SDL_Event &event)
break;
}
case SDLK_KP_ENTER:
case SDLK_SPACE:
return MenuAction::SELECT;
case SDLK_SPACE:
if (!SDL_IsTextInputActive()) {
return MenuAction::SELECT;
}
break;
case SDLK_DELETE:
return MenuAction::DELETE;
case SDLK_LEFT:

Loading…
Cancel
Save