Ignore:
Timestamp:
Sep 14, 2006, 11:31:42 PM (19 years ago)
Author:
dmik
Message:

Psi: Improved: Pressing ESC in a chat or a group chat window minimizes it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • psi/trunk/src/chatdlg.cpp

    r46 r49  
    359359void ChatDlg::keyPressEvent(QKeyEvent *e)
    360360{
    361         if(e->key() == Key_Escape && !option.useTabs)
    362                 close();
    363 //#ifdef Q_WS_MAC //this is a standard on other platforms too
     361        if(e->key() == Key_Escape && e->state() == 0 && !option.useTabs)
     362                showMinimized();
    364363        else if(e->key() == Key_W && e->state() & ControlButton && !option.useTabs)
    365364                close();
    366 //#endif
    367365        else if(e->key() == Key_Return || e->key() == Key_Enter || (e->key() == Key_S && (e->state() & AltButton)))
    368366                doSend();
Note: See TracChangeset for help on using the changeset viewer.