[client] spice: fix missing scancode translation for key up

This commit is contained in:
Geoffrey McRae
2026-07-28 12:27:18 +10:00
parent e4888c362a
commit f980248221

View File

@@ -1189,8 +1189,12 @@ int spiceThread(void * arg)
for(int scancode = 0; scancode < KEY_MAX; ++scancode)
if (g_state.keyDown[scancode])
{
g_state.keyDown[scancode] = false;
purespice_keyUp(scancode);
const uint32_t ps2 = linux_to_ps2[scancode];
if (ps2 && purespice_keyUp(ps2))
g_state.keyDown[scancode] = false;
else
DEBUG_ERROR("Failed to release key %d during SPICE shutdown",
scancode);
}
}