Commit 28daf6f9 authored by Laurent Montel's avatar Laurent Montel 😁

Use space for move into page as in kghostview

svn path=/trunk/kdegraphics/kpdf/; revision=254585
parent 15081e54
......@@ -211,6 +211,12 @@ namespace KPDF
case Key_Right:
scrollRight();
break;
case Key_Space:
{
if( e->state() != ShiftButton ) {
emit spacePressed();
}
}
default:
e->ignore();
return;
......
......@@ -63,7 +63,7 @@ namespace KPDF
void ZoomIn();
void rightClick();
void urlDropped( const KURL& );
void spacePressed();
protected:
virtual void keyPressEvent( QKeyEvent* );
void contentsMousePressEvent(QMouseEvent*);
......
......@@ -136,7 +136,7 @@ Part::Part(QWidget *parentWidget, const char *widgetName,
connect( m_outputDev, SIGNAL( ReadUp() ), SLOT( slotReadUp() ));
connect( m_outputDev, SIGNAL( ReadDown() ), SLOT( slotReadDown() ));
connect( m_outputDev, SIGNAL( urlDropped( const KURL& ) ), SLOT( slotOpenUrlDropped( const KURL & )));
connect( m_outputDev, SIGNAL( spacePressed() ), this, SLOT( slotReadDown() ) );
readSettings();
updateActionPage();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment