VirtualBox

Changeset 31108 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 26, 2010 11:39:25 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: Keyboard autograbbed on start up and resume: Might be fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

    r30792 r31108  
    518518                if (m_views[theListOfViewIds[i]]->hasFocus())
    519519                {
    520                     captureKeyboard(theListOfViewIds[i]);
     520                    /* Capture keyboard: */
     521#ifdef Q_WS_WIN
     522                    if (!uisession()->isAutoCaptureDisabled() && m_globalSettings.autoCapture() &&
     523                        GetAncestor(m_views[theListOfViewIds[i]]->winId(), GA_ROOT) == GetForegroundWindow())
     524#else /* Q_WS_WIN */
     525                    if (!uisession()->isAutoCaptureDisabled() && m_globalSettings.autoCapture())
     526#endif /* !Q_WS_WIN */
     527                        captureKeyboard(theListOfViewIds[i]);
     528                    /* Reset the single-time disable capture flag: */
     529                    if (uisession()->isAutoCaptureDisabled())
     530                        uisession()->setAutoCaptureDisabled(false);
    521531                    break;
    522532                }
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