Changeset 12410 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 11, 2008 7:21:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/linux/keyboard-new.c
r11982 r12410 335 335 /* got it */ 336 336 scan = main_key_scan[keyn - 1]; 337 ++matches; 337 if (keyn != 48) /* don't count the 102nd key */ 338 ++matches; 338 339 } 339 340 if (0 == scan) { … … 364 365 keyc2scan[keyc] = scan; 365 366 } /* 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. */ 367 370 for (entries = 0, keyn = 0; keyn < MAIN_LEN; ++keyn) { 368 371 if ( (0 != (*lkey)[keyn][0]) 369 372 && (0 != (*lkey)[keyn][1]) 373 && (keyn != 48) /* don't count the 102nd key */ 370 374 ) { 371 375 ++entries;
Note:
See TracChangeset
for help on using the changeset viewer.