Registered Member
|
I have implemented the following patch:
Current behavior: When you press the right arrow key while viewing a document and the whole width fits on the screen, Okular currently just ignores your input. New behavior: If you press right and there is no horizontal scroll bar, it will advance to the next page. If you have chosen a "Facing" view mode, it will advance 2 pages per key press. Why another command besides PageDown? The difference between this and using PageDown is that PageDown just moves your document one height of your viewport. The proposed solution moves one page which means that the top-left corner of your page will always be aligned with the top-left corner of your viewport. Of course this is also implemented for the left arrow key, where we just move to the previous page. The patch can be found at https://git.reviewboard.kde.org/r/104596/ |
KDE Developer
|
I'm not sure. Thinking about it raises couple points in my head:
Just my 2 cents..
KDE Telepathy | Plasma | Plasma Mobile
|
KDE Developer
|
mI agree with the problems raised by mck182 but I also want this feature since a long time. So, maybe, other keys should be chosed ?
Arrows or PgUp/PgDw with a modifier ? |
Registered Member
|
Well, I believe the arrow key navigation works in Adobe Reader too. As far as I can remember, in Adobe Reader, if you have a page openend and zoomed in, Page-up/page-down keys would navigate by view-ports and left/right arrow keys would change pages.
It will be a good idea to implement this with arrow keys in Okular since its the same scheme as Adobe Reader (the most popular PDF app on Windows). |
Registered Member
|
If technically possible, I think it is better to modify the shortcut configuration system to allow the user to control what the arrow keys (and some others ) are used for, within the context of the program.
Manasij Mukherjee @ Arch Linux | gcc-4.9.2 | Plasma 5.2
|
Registered Member
|
More important question: how about left/right arrow is handled with other kde applications? You need to think globally people, for instance in gwenview right/left is doing the same: vote yes! There is so much hotkey mess in kde world...
|
Registered Member
|
I agree with the proposed behavior change. I have been wishing for this for a while. Many other readers do it and many users (I believe) are used to this when coming to Okular. More importantly, however, is that advancing one page is probably the single most used command in Okular and many modern keyboards (on notebooks, netbooks, bluetooth keyboards, etc.) hide the PageUp and PageDown keys in ridiculous places, making the current keyboard navigation painful.
|
Registered Member
|
I like the idea, a one-page sliding button is needed and IMHO can't be PgDn or PgUp since this would break the usual way they work in all other programs.
yet, it might be a bit confusing when the behavior of Left/Right pressing depends on the level of zoom on the page |
Registered Member
|
+1 for manasij7479
This should be user-customisable. I prefer pg-up/down to change photo when browsing photos, but i expect left/right arrow to pan the current view, so i'd oppose this. If it would be configurable on the other hand, i'd have no problem with it. |
Registered Member
|
correct me if i'm wrong, but nearly all shortcuts are customizable in kde programs already, so there is quite good chances these buttons will be as well, and we're only talking of the default behaviour |
Registered Member
|
You are correct. They are supported, I can't believe I missed that, though ! (Based on the comments on the patch's submitted page itself, it appears that the current default behaviour is on purpose.) http://imgur.com/dCc2F [Edit] I should have taken the screenshot by configuring "Next Page" for "Right", but "Left" proves the point. [/Edit]
Manasij Mukherjee @ Arch Linux | gcc-4.9.2 | Plasma 5.2
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]