Changeset 506


Ignore:
Timestamp:
Mar 6, 2012, 6:36:24 PM (9 years ago)
Author:
dmik
Message:

Fix Alt+Letter menu shortcuts broken in 1.3.1.

This closes #211.

File:
1 edited

Legend:

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

    r476 r506  
    13201320            // unexpected. Fix it by translating accels manually and checking
    13211321            // if they are disabled in the hidden menu
    1322             if ( WinTranslateAccel( hab, hwnd, WinQueryAccelTable( hab, hwnd ),
    1323                                     pqmsg ) )
     1322            BOOL ok = WinTranslateAccel( hab, hwnd,
     1323                                         WinQueryAccelTable( hab, hwnd ),
     1324                                         pqmsg );
     1325            // try the menu mnemonics if no explicit accels found
     1326            if ( !ok )
     1327                ok = (BOOL)WinSendMsg( hwnd, 0x0195 /*WM_TRANSLATEMNEMONIC*/,
     1328                                       MPFROMP( pqmsg ), NULL );
     1329            if ( ok )
    13241330            {
    13251331                if ( pqmsg->msg == WM_COMMAND ) {
Note: See TracChangeset for help on using the changeset viewer.