How can I move left or right in the same page?

Asked by Salehmu

As using left/right arrows makes moves to the next/last page, how can move the current page view (when it's zoomed) to the left or the right? In zathura, I used to use h and l

Question information

Language:
English Edit question
Status:
Solved
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Reichold
Solved:
Last query:
Last reply:
Revision history for this message
Adam Reichold (adamreichold) said :
#1

Hello Salehmu,

the left/right arrow keys only skip the to previous/next page if there is horizontal scroll bar present, i.e. if the view is zoomed out so that panning left/right is not possible. If it is zoomed in sufficiently, the left/right arrow keys do indeed pan the view left/right.

Regards,
Adam

Revision history for this message
Salehmu (salehmu) said :
#2

Actually, I permanently disabled the scrollbar from the source code, is there anyway to make them behave the same after that? (or anyway to disable the scrollbars safely? I used `ScrollBarAlwaysOff`)

Revision history for this message
Best Adam Reichold (adamreichold) said :
#3

Well if you patched the scroll bars out from the source code, you need to adjust the handling of Qt::Key_{Left,Right} in DocumentView::keyPressEvent, i.e. currently at documentview.cpp:2243.

Revision history for this message
Salehmu (salehmu) said :
#4

Thanks very much, Adam :)

Revision history for this message
Emma Watson (emmawatson3) said (last edit ):
#5

Adman is right, you can adjust the handling in the document view.