Ignore:
Timestamp:
Apr 15, 2010, 3:09:22 PM (12 years ago)
Author:
dmik
Message:

Make copy to clipboard work in input fields in fullscreen mode (PM misbehavior).

File:
1 edited

Legend:

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

    r392 r393  
    11661166    switch ( msg )
    11671167    {
     1168        case WM_TRANSLATEACCEL:
     1169        {
     1170            // change the accel logic by first letting the focus window process
     1171            // WM_CHAR and only translate it to accel if not handled (this makes
     1172            // sure that keyboard shortcuts in input fields work even if we
     1173            // defined our own accelerators from these shortcuts)
     1174            PQMSG pqmsg = (PQMSG)mp1;
     1175            HWND focus = WinQueryFocus( HWND_DESKTOP );
     1176            if ( focus == pqmsg->hwnd && focus != hwnd ) {
     1177                if ( WinDispatchMsg( hab, pqmsg ) ) {
     1178                    pqmsg->msg = WM_NULL;
     1179                    return (MRESULT)TRUE;
     1180                }
     1181            }
     1182        }
     1183        break;
     1184
    11681185        case WM_SYSCOMMAND:
    11691186        {
Note: See TracChangeset for help on using the changeset viewer.