diff --git a/client/src/keybind.c b/client/src/keybind.c index a5b233e5..ad7d2ed7 100644 --- a/client/src/keybind.c +++ b/client/src/keybind.c @@ -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()) {