|
|
@ -33,8 +33,6 @@
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <krootpixmap.h>
|
|
|
|
#include <krootpixmap.h>
|
|
|
|
|
|
|
|
|
|
|
|
static bool controlHold = false; // is the control key pressed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KomposeFullscreenWidget::KomposeFullscreenWidget( int displayType, KomposeLayout *l )
|
|
|
|
KomposeFullscreenWidget::KomposeFullscreenWidget( int displayType, KomposeLayout *l )
|
|
|
|
: KomposeTaskContainerWidget( -1, 0, l ),
|
|
|
|
: KomposeTaskContainerWidget( -1, 0, l ),
|
|
|
|
type(displayType)
|
|
|
|
type(displayType)
|
|
|
@ -196,7 +194,6 @@ void KomposeFullscreenWidget::keyPressEvent( TQKeyEvent *e )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( e->key() == TQt::Key_Control )
|
|
|
|
if ( e->key() == TQt::Key_Control )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
controlHold = true;
|
|
|
|
|
|
|
|
e->accept();
|
|
|
|
e->accept();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -212,7 +209,6 @@ void KomposeFullscreenWidget::keyReleaseEvent ( TQKeyEvent *e )
|
|
|
|
|
|
|
|
|
|
|
|
else if ( e->key() == TQt::Key_Control )
|
|
|
|
else if ( e->key() == TQt::Key_Control )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
controlHold = false;
|
|
|
|
|
|
|
|
e->accept();
|
|
|
|
e->accept();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -228,38 +224,22 @@ void KomposeFullscreenWidget::keyReleaseEvent ( TQKeyEvent *e )
|
|
|
|
switch( e->key() )
|
|
|
|
switch( e->key() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case TQt::Key_Right:
|
|
|
|
case TQt::Key_Right:
|
|
|
|
direction = DLAYOUT_RIGHT;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TQt::Key_D:
|
|
|
|
case TQt::Key_D:
|
|
|
|
direction = DLAYOUT_RIGHT;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TQt::Key_L:
|
|
|
|
case TQt::Key_L:
|
|
|
|
direction = DLAYOUT_RIGHT;
|
|
|
|
direction = DLAYOUT_RIGHT;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case TQt::Key_Left:
|
|
|
|
case TQt::Key_Left:
|
|
|
|
direction = DLAYOUT_LEFT;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TQt::Key_A:
|
|
|
|
case TQt::Key_A:
|
|
|
|
direction = DLAYOUT_LEFT;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TQt::Key_H:
|
|
|
|
case TQt::Key_H:
|
|
|
|
direction = DLAYOUT_LEFT;
|
|
|
|
direction = DLAYOUT_LEFT;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case TQt::Key_Up:
|
|
|
|
case TQt::Key_Up:
|
|
|
|
direction = DLAYOUT_TOP;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TQt::Key_W:
|
|
|
|
case TQt::Key_W:
|
|
|
|
direction = DLAYOUT_TOP;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TQt::Key_K:
|
|
|
|
case TQt::Key_K:
|
|
|
|
direction = DLAYOUT_TOP;
|
|
|
|
direction = DLAYOUT_TOP;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case TQt::Key_Down:
|
|
|
|
case TQt::Key_Down:
|
|
|
|
direction = DLAYOUT_BOTTOM;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TQt::Key_S:
|
|
|
|
case TQt::Key_S:
|
|
|
|
direction = DLAYOUT_BOTTOM;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TQt::Key_J:
|
|
|
|
case TQt::Key_J:
|
|
|
|
direction = DLAYOUT_BOTTOM;
|
|
|
|
direction = DLAYOUT_BOTTOM;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|