moved code that handles the previous keypress
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index f20f6af9c063d2b4dd66e4909aa49ceade9e3bf6..d23340fed66aa32e21b551d40f9914397ee712cf 100644 (file)
@@ -673,9 +673,6 @@ int CCECCommandHandler::HandleUserControlPressed(const cec_command &command)
 
   CCECClient *client = device->GetClient();
   if (client)
-    client->AddKey();
-
-  if (command.parameters[0] <= CEC_USER_CONTROL_CODE_MAX)
     client->SetCurrentButton((cec_user_control_code) command.parameters[0]);
 
   if (command.parameters[0] == CEC_USER_CONTROL_CODE_POWER ||