VirtualBox

Ignore:
Timestamp:
Mar 8, 2007 3:52:48 AM (18 years ago)
Author:
vboxsync
Message:

darwin: ignore keyboard events when the widget hasn't got the (keyboard) focus.

File:
1 edited

Legend:

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

    r1285 r1318  
    477477bool QIHotKeyEdit::darwinKeyboardEvent( EventRef inEvent )
    478478{
     479    /* ignore key changes unless we're the focus widget */
     480    if (!hasFocus())
     481        return false;
     482
    479483    UInt32 eventKind = ::GetEventKind( inEvent );
    480484    switch ( eventKind ) {
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