Changeset 409 for trunk


Ignore:
Timestamp:
Apr 19, 2010, 8:16:11 PM (11 years ago)
Author:
dmik
Message:

Fixed: Tab didn't switch between the index and document windows (r393 regression).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/lucide.cpp

    r400 r409  
    11941194            // WM_CHAR and only translate it to accel if not handled (this makes
    11951195            // sure that keyboard shortcuts in input fields work even if we
    1196             // defined our own accelerators from these shortcuts)
     1196            // defined our own accelerators from these shortcuts). Make an
     1197            // exception for VK_TAB since it's always eaten by the standard
     1198            // window procedure and therefore the accel table will never be
     1199            // called
    11971200            PQMSG pqmsg = (PQMSG)mp1;
    1198             HWND focus = WinQueryFocus( HWND_DESKTOP );
    1199             if ( focus == pqmsg->hwnd && focus != hwnd ) {
    1200                 if ( WinDispatchMsg( hab, pqmsg ) ) {
    1201                     pqmsg->msg = WM_NULL;
    1202                     return (MRESULT)TRUE;
     1201            if ( !( SHORT1FROMMP( pqmsg->mp1 ) & KC_VIRTUALKEY ) ||
     1202                 !( SHORT2FROMMP( pqmsg->mp2 ) == VK_TAB ) )
     1203            {
     1204                HWND focus = WinQueryFocus( HWND_DESKTOP );
     1205                if ( focus == pqmsg->hwnd && focus != hwnd ) {
     1206                    if ( WinDispatchMsg( hab, pqmsg ) ) {
     1207                        pqmsg->msg = WM_NULL;
     1208                        return (MRESULT)TRUE;
     1209                    }
    12031210                }
    12041211            }
     
    12081215            // if they are disabled in the hidden menu
    12091216            if ( WinTranslateAccel( hab, hwnd, WinQueryAccelTable( hab, hwnd ),
    1210                                     pqmsg ) ) {
     1217                                    pqmsg ) )
     1218            {
    12111219                if ( pqmsg->msg == WM_COMMAND ) {
    12121220                    SHORT cm = SHORT1FROMMP(pqmsg->mp1);
Note: See TracChangeset for help on using the changeset viewer.