close main window on ESC (additionally to Ctrl + F4). To achieve this remove ESC as a shortcut to switch focus to word input. This action is already performed by typing just any key on the ArticleView and with Alt+D and Ctrl+L key combinations on MainWindow.

This commit is contained in:
Julian Depetris Chauvin 2011-04-30 20:46:45 -03:00
parent 28fd948b99
commit 0f5d4aa04e
2 changed files with 2 additions and 2 deletions

View file

@ -1148,7 +1148,7 @@ void MainWindow::handleEsc()
if ( dynamic_cast< ArticleView & >( *( ui.tabWidget->currentWidget() ) ).closeSearch() )
return;
focusTranslateLine();
on_actionCloseToTray_activated();
}
void MainWindow::focusTranslateLine()

View file

@ -218,7 +218,7 @@ private slots:
void translateInputChanged( QString const & );
void translateInputFinished();
/// Closes any opened search in the article view, and focuses the translateLine.
/// Closes any opened search in the article view, and close main window to tray.
void handleEsc();
/// Gives the keyboard focus to the translateLine and selects all the text