X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;h=f8a8ade3c421aa12d00f781b03978eb1706dc9ba;hb=b60a3d77387e19e56afcadafb5dd12e69764b524;hp=d3318a18dff928d103c86da4b586f8bc4247dc1c;hpb=30b4aac02b90b71baaf1f41bab67cb1c77c4858f;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index d3318a1..f8a8ade 100644 --- a/src/lib/implementations/ANCommandHandler.cpp +++ b/src/lib/implementations/ANCommandHandler.cpp @@ -54,8 +54,10 @@ bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) switch (command.parameters[0]) { - case CEC_AN_USER_CONTROL_CODE_RETURN: - key.keycode = CEC_USER_CONTROL_CODE_EXIT; + case CEC_USER_CONTROL_CODE_AN_RETURN: + key.keycode = m_processor->GetClientVersion() >= CEC_CLIENT_VERSION_1_5_0 ? + CEC_USER_CONTROL_CODE_AN_RETURN : + CEC_USER_CONTROL_CODE_EXIT; break; default: break;