Skip to content

Commit

Permalink
Esc Key clears search field
Browse files Browse the repository at this point in the history
  • Loading branch information
jounathaen committed Jan 29, 2016
1 parent 5adcc4a commit 8013d23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
@@ -1585,6 +1585,9 @@ void MainWindow::keyPressEvent(QKeyEvent * event) {
case Qt::Key_Enter:
on_editButton_clicked();
break;
case Qt::Key_Escape:
ui->lineEdit->clear();
break;
default:
break;
}

0 comments on commit 8013d23

Please sign in to comment.