Commit b2cc1a9d authored by Eike Ziller's avatar Eike Ziller
Browse files

Allow usage of keypad 'enter' key for initiating searches.

Change-Id: Ida418646a35c51cc848abfeb8fd598f13d56b7dc
Reviewed-on: http://codereview.qt-project.org/5541

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 62716613
......@@ -90,7 +90,7 @@ bool FindToolWindow::event(QEvent *event)
if (event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
if ((ke->key() == Qt::Key_Return || ke->key() == Qt::Key_Enter)
&& ke->modifiers() == Qt::NoModifier) {
&& (ke->modifiers() == Qt::NoModifier || ke->modifiers() == Qt::KeypadModifier)) {
ke->accept();
search();
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment