CT: abort moving with Escape. Reviewed by M.Ettrich

svn path=/trunk/kdebase/kwin/; revision=140567
This commit is contained in:
Cristian Tibirna 2002-03-03 13:59:50 +00:00
parent 53c0a8100e
commit daee285811

View file

@ -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 );