VirtualBox

Ignore:
Timestamp:
Mar 7, 2007 10:05:44 PM (18 years ago)
Author:
vboxsync
Message:

A quick hack to prevent getting the typing-while-paused on Host-Q.

File:
1 edited

Legend:

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

    r1288 r1315  
    117117    if (EventClass == kEventClassKeyboard)
    118118    {
    119         if (    view->darwinKeyboardEvent (inEvent)
    120             &&  ::GetEventKind (inEvent) != kEventRawKeyModifiersChanged)
     119        if (view->darwinKeyboardEvent (inEvent))
    121120            return 0;
    122121    }
    123     return CallNextEventHandler (inHandlerCallRef, inEvent);
     122    return ::CallNextEventHandler (inHandlerCallRef, inEvent);
    124123}
    125124
     
    657656            vboxProblem().cannotResumeMachine (cconsole);
    658657    }
     658#ifdef Q_WS_MAC /* A quick hack to prevent getting the typing-while-paused on Host-Q. */
     659    else if (on)
     660        darwinGrabKeyboardEvents (false);
     661#endif
    659662
    660663    return ok;
     
    14101413        m_darwinKeyModifiers = newMask;
    14111414
    1412         /* ret is intentionally false. */
     1415        ret = kbd_captured; //??
    14131416    }
    14141417
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