From daee285811c20fe5ad91f949bf3a7cb0c172fc70 Mon Sep 17 00:00:00 2001 From: Cristian Tibirna Date: Sun, 3 Mar 2002 13:59:50 +0000 Subject: [PATCH] CT: abort moving with Escape. Reviewed by M.Ettrich svn path=/trunk/kdebase/kwin/; revision=140567 --- client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index bc9706e5fe..878f6ddd0a 100644 --- a/client.cpp +++ b/client.cpp @@ -2681,7 +2681,7 @@ void Client::keyPressEvent( uint key_code ) { if ( !isMove() && !isResize() ) return; - bool is_control = key_code & KKeyNative::modX(KKey::CTRL); + bool is_control = key_code & Qt::CTRL; key_code = key_code & 0xffff; int delta = is_control?1:8; QPoint pos = QCursor::pos(); @@ -2725,6 +2725,7 @@ void Client::keyPressEvent( uint key_code ) case Key_Space: case Key_Return: case Key_Enter: + case Key_Escape: clearbound(); stopMoveResize(); setGeometry( geom );