From e00be93231ed81c35066583c02e1ed2cde6caf68 Mon Sep 17 00:00:00 2001 From: Thierry Bastian Date: Tue, 16 Mar 2010 10:46:52 +0100 Subject: Make sure the delete and backspace keys are ignored when keyb-searching Task-number: QTBUG-8270 Reviewed-by: gabi (cherry picked from commit b912cac358a0a84f72f727767772caad22062a45) --- src/gui/itemviews/qabstractitemview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp index 7cc54f4..3be46a0 100644 --- a/src/gui/itemviews/qabstractitemview.cpp +++ b/src/gui/itemviews/qabstractitemview.cpp @@ -2300,6 +2300,8 @@ void QAbstractItemView::keyPressEvent(QKeyEvent *event) case Qt::Key_Escape: case Qt::Key_Shift: case Qt::Key_Control: + case Qt::Key_Delete: + case Qt::Key_BackSpace: event->ignore(); break; case Qt::Key_Space: -- cgit v0.12