[client] spice: fix duplicate keybind registration

This commit is contained in:
Geoffrey McRae 2022-05-27 13:29:28 +10:00
parent aba8c5b499
commit 123be552a4

View File

@ -165,6 +165,14 @@ void keybind_spiceRegister(void)
app_registerKeybind(KEY_RIGHTMETA, bind_passthrough, NULL,
"Send RWin to the guest");
#if ENABLE_AUDIO
if (audio_supportsRecord())
{
app_registerKeybind(KEY_E, audio_recordToggleKeybind, NULL,
"Toggle audio recording");
}
#endif
firstTime = false;
}
@ -175,14 +183,6 @@ void keybind_spiceRegister(void)
app_releaseKeybind(&handles[i]);
handleCount = 0;
#if ENABLE_AUDIO
if (audio_supportsRecord())
{
app_registerKeybind(KEY_E, audio_recordToggleKeybind, NULL,
"Toggle audio recording");
}
#endif
/* register OS based keybinds */
if (app_guestIsLinux())
{