VirtualBox

Changeset 50350 in vbox


Ignore:
Timestamp:
Feb 6, 2014 3:49:58 PM (11 years ago)
Author:
vboxsync
Message:

HID LEDs sync: Windows host: fix logging, prevent leds blinking when keyboard is used for make VM window to get a focus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/win/WinKeyboard.cpp

    r50191 r50350  
    1818 */
    1919
     20#define LOG_GROUP LOG_GROUP_GUI
     21 
    2022#include "WinKeyboard.h"
    2123#include <iprt/assert.h>
     
    6264    {
    6365        /* Simulate KeyUp+KeyDown keystroke */
    64         keybd_event(idModifier, MapVirtualKey(idModifier, MAPVK_VK_TO_VSC), KEYEVENTF_EXTENDEDKEY, 0);
    65         keybd_event(idModifier, MapVirtualKey(idModifier, MAPVK_VK_TO_VSC), KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0);
     66        keybd_event(idModifier, 0, KEYEVENTF_EXTENDEDKEY, 0);
     67        keybd_event(idModifier, 0, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0);
    6668
    6769        LogRel2(("HID LEDs sync: setting %s state to %s (0x%X).\n",
     
    166168
    167169    if (winSetHidLeds(fNumLockOn, fCapsLockOn, fScrollLockOn))
    168         LogRel2(("ID LEDs sync: broadcast completed\n"));
     170        LogRel2(("HID LEDs sync: broadcast completed\n"));
    169171    else
    170         LogRel2(("ID LEDs sync: broadcast failed\n"));
     172        LogRel2(("HID LEDs sync: broadcast failed\n"));
    171173}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette