Skip to content

Commit

Permalink
fix #1864
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Sep 10, 2017
1 parent 686885b commit 417ccdc
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 240 deletions.
7 changes: 5 additions & 2 deletions src/hotkey/command_executor.cpp
Expand Up @@ -516,10 +516,13 @@ static void event_execute( const SDL_Event& event, command_executor* executor)
return;
}

const hotkey_command& command = get_hotkey_command(hk->get_command());
bool press = event.type == SDL_KEYDOWN ||
event.type == SDL_JOYBUTTONDOWN ||
event.type == SDL_MOUSEBUTTONDOWN ||
event.type == SDL_TEXTINPUT;
event.type == SDL_MOUSEBUTTONDOWN;
if(!command.toggle) {
press = press || event.type == SDL_TEXTINPUT;
}

execute_command(hotkey::get_hotkey_command(hk->get_command()), executor, -1, press);
executor->set_button_state();
Expand Down

0 comments on commit 417ccdc

Please sign in to comment.