VirtualBox

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


Ignore:
Timestamp:
Oct 2, 2011 8:38:36 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74278
Message:

FE/Qt: re-applied r74233 to trunk: fix spurious left control key events on Windows hosts

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

    r38815 r38928  
    934934        return false;
    935935
    936     if (!m_fIsKeyboardCaptured)
    937         return false;
    938 
    939936    /* Sometimes it happens that Win inserts additional events on some key
    940937     * press/release. For example, it prepends ALT_GR in German layout with
     
    954951            return true;
    955952    }
     953
     954    /** @todo this needs to be after the preceding check so that
     955     *        we ignore those spurious key events even when the
     956     *        keyboard is not captured.  However, that is probably a
     957     *        hint that that filtering should be done somewhere else,
     958     *        and not in the keyboard capture handler. */
     959    if (!m_fIsKeyboardCaptured)
     960        return false;
    956961
    957962    /* It's possible that a key has been pressed while the keyboard was not
Note: See TracChangeset for help on using the changeset viewer.

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