Skip to content

Commit

Permalink
Fix for key(board) input pause ('p'/space) didn't paused/resumed player.
Browse files Browse the repository at this point in the history
Broken by 'Improved DBus support' commit.
  • Loading branch information
jehutting committed May 27, 2016
1 parent 22f946e commit 7152e1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions KeyConfig.cpp
Expand Up @@ -43,7 +43,7 @@ int convertStringToAction(string str_action)
if(str_action == "EXIT")
return KeyConfig::ACTION_EXIT;
if(str_action == "PAUSE")
return KeyConfig::ACTION_PAUSE;
return KeyConfig::ACTION_PLAYPAUSE;
if(str_action == "DECREASE_VOLUME")
return KeyConfig::ACTION_DECREASE_VOLUME;
if(str_action == "INCREASE_VOLUME")
Expand Down Expand Up @@ -116,8 +116,8 @@ map<int, int> KeyConfig::buildDefaultKeymap()
keymap['f'] = ACTION_INCREASE_SUBTITLE_DELAY;
keymap['q'] = ACTION_EXIT;
keymap[KEY_ESC] = ACTION_EXIT;
keymap['p'] = ACTION_PAUSE;
keymap[' '] = ACTION_PAUSE;
keymap['p'] = ACTION_PLAYPAUSE;
keymap[' '] = ACTION_PLAYPAUSE;
keymap['-'] = ACTION_DECREASE_VOLUME;
keymap['+'] = ACTION_INCREASE_VOLUME;
keymap['='] = ACTION_INCREASE_VOLUME;
Expand Down

0 comments on commit 7152e1e

Please sign in to comment.