Changeset 393


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

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

Location:
trunk/Lucide/gui
Files:
2 edited

Legend:

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

    r390 r393  
    14801480        r.xRight += 1; r.yTop += 1;
    14811481        WinInvalidateRect( hWndDoc, &r, TRUE );
     1482        // remove the focus from the window we hid
     1483        WinSetFocus( HWND_DESKTOP, hWndDoc );
    14821484    }
    14831485}
  • 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.