CT: abort moving with Escape. Reviewed by M.Ettrich
svn path=/trunk/kdebase/kwin/; revision=140567
This commit is contained in:
parent
53c0a8100e
commit
daee285811
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue