VirtualBox

Changeset 5238 in vbox for trunk


Ignore:
Timestamp:
Oct 11, 2007 3:24:13 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25189
Message:

Linux host keyboard: ignore more than two keyboard symbols, as using three or more causes problems in many setups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/linux/keyboard.c

    r5049 r5238  
    18161816#endif
    18171817
     1818#ifndef OUTOFWINE
    18181819  syms = keysyms_per_keycode;
    18191820  if (syms > 4) {
     
    18211822    syms = 4;
    18221823  }
     1824#else
     1825/* innotek FIX */
     1826  /* Not all setups really produce all four keysyms, and two are enough
     1827     for identification anyway. */
     1828  syms = keysyms_per_keycode;
     1829  if (syms > 2) {
     1830    WARN("%d keysyms per keycode not supported, set to 2\n", syms);
     1831    syms = 2;
     1832  }
     1833#endif
    18231834
    18241835  memset( ckey, 0, sizeof(ckey) );
     
    20122023#endif
    20132024    lkey = main_key_tab[kbd_layout].key;
     2025#ifndef OUTOFWINE
    20142026    syms = (keysyms_per_keycode > 4) ? 4 : keysyms_per_keycode;
     2027#else
     2028/* innotek FIX */
     2029  /* Not all setups really produce all four keysyms, and two are enough
     2030     for identification anyway. */
     2031    syms = (keysyms_per_keycode > 2) ? 2 : keysyms_per_keycode;
     2032#endif
    20152033
    20162034    /* Now build two conversion arrays :
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