From b2a6be6bf0b465508194c23514987f87d3299702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 13 Jan 2009 10:10:55 +0000 Subject: [PATCH] Close window filtering when the delete key is pressed. FEATURE: 180516 svn path=/trunk/KDE/kdebase/workspace/; revision=910395 --- effects/presentwindows.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index 5592c6ddcb..4549aa2236 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -368,6 +368,14 @@ void PresentWindowsEffect::grabbedKeyboardEvent( QKeyEvent *e ) return; case Qt::Key_Tab: return; // Nothing at the moment + case Qt::Key_Delete: + if( !m_windowFilter.isEmpty() ) + { + m_windowFilter.clear(); + updateFilterTexture(); + rearrangeWindows(); + } + break; case 0: return; // HACK: Workaround for Qt bug on unbound keys (#178547) default: