[client] spice: fix duplicate keybind registration
This commit is contained in:
1 parent
aba8c5b499
commit
123be552a4
1 file changed
+8
-8
@@ -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())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user