VirtualBox

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


Ignore:
Timestamp:
Sep 11, 2008 7:21:51 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt: attempt to fix bogus reports about keyboard layout mismatches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-new.c

    r11982 r12410  
    335335                /* got it */
    336336                scan = main_key_scan[keyn - 1];
    337                 ++matches;
     337                if (keyn != 48) /* don't count the 102nd key */
     338                    ++matches;
    338339              }
    339340              if (0 == scan) {
     
    364365        keyc2scan[keyc] = scan;
    365366    } /* for */
    366     /* Did we find a match for all keys in the layout?  Count them first. */
     367    /* Did we find a match for all keys in the layout?  Count them first.
     368     * Note that we skip the 102nd key, so that owners of 101 key keyboards
     369     * don't get bogus messages about bad matches. */
    367370    for (entries = 0, keyn = 0; keyn < MAIN_LEN; ++keyn) {
    368371        if (   (0 != (*lkey)[keyn][0])
    369372            && (0 != (*lkey)[keyn][1])
     373            && (keyn != 48) /* don't count the 102nd key */
    370374           ) {
    371375            ++entries;
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