mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-25 23:13:39 +00:00
[client] spice: avoid spice_key_modifiers when input is disabled
This commit is contained in:
parent
14ad83c6b8
commit
8a5efef622
@ -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) |
|
||||
|
Loading…
Reference in New Issue
Block a user