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

English Edit question
qpdfview Edit question
No assignee Edit question
Solved by:
Adam Reichold
Last query:
Last reply:
Revision history for this message
Adam Reichold (adamreichold) said :

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.


Revision history for this message
Salehmu (salehmu) said :

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 :

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 :

Thanks very much, Adam :)

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

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