Make keyboard move/resize faster with Alt pressed.

svn path=/trunk/kdebase/kwin/; revision=254811
This commit is contained in:
Luboš Luňák 2003-09-29 11:19:55 +00:00
parent e82bcc09ac
commit 79796b2fb7

View file

@ -1405,8 +1405,9 @@ void Client::keyPressEvent( uint key_code )
if ( !isMove() && !isResize() )
return;
bool is_control = key_code & Qt::CTRL;
bool is_alt = key_code & Qt::ALT;
key_code = key_code & 0xffff;
int delta = is_control?1:8;
int delta = is_control?1:is_alt?32:8;
QPoint pos = QCursor::pos();
switch ( key_code )
{