diff --git a/doc/index.docbook b/doc/index.docbook --- a/doc/index.docbook +++ b/doc/index.docbook @@ -211,6 +211,17 @@ + +Keyboard Handling + +You can move the ruler using the arrow key buttons. + +You can move the mouse cursor, and thus the indicator, by holding down +&Alt; and using the arrow buttons. + +Hold down &Shift; while doing one of those to move faster. + + Credits and License diff --git a/klineal.cpp b/klineal.cpp --- a/klineal.cpp +++ b/klineal.cpp @@ -578,7 +578,12 @@ dist *= 10; } - move( pos() + dist ); + if ( e->modifiers() & Qt::AltModifier ) { + QCursor::setPos( QCursor::pos() + dist ); + } else { + move( pos() + dist ); + update(); + } KNotification::event( QString(), QStringLiteral( "cursormove" ), QString() ); }