[client] spice: avoid spice_key_modifiers when input is disabled
This commit is contained in:
1 parent
14ad83c6b8
commit
8a5efef622
1 file changed
+3
@@ -414,6 +414,9 @@ void app_handleKeyboardModifiers(bool ctrl, bool shift, bool alt, bool super)
|
||||
|
||||
void app_handleKeyboardLEDs(bool numLock, bool capsLock, bool scrollLock)
|
||||
{
|
||||
if (!core_inputEnabled())
|
||||
return;
|
||||
|
||||
uint32_t modifiers =
|
||||
(scrollLock ? 1 /* SPICE_SCROLL_LOCK_MODIFIER */ : 0) |
|
||||
(numLock ? 2 /* SPICE_NUM_LOCK_MODIFIER */ : 0) |
|
||||
|
||||
Reference in new issue
Block a user