GNOME Bugzilla – Bug 726485
Documents cannot be navigated with keyboard unless the document is clicked.
Last modified: 2014-09-19 15:32:19 UTC
Steps to reproduce: - open a multi-page document from any source - without clicking on anything, click the right and left arrows Nothing will happen. In order to make navigation with arrows work, one must click on the screen of the document. one should be able to navigate the document by using the arrow keys from the moment that the document becomes active.
Created attachment 272102 [details] [review] PreviewView keyboard handling This fixes the bug.
Seems like a good thing to have.
What about page up or page down?
(In reply to comment #3) > What about page up or page down? Ignore me. I should have read the code first.
Review of attachment 272102 [details] [review]: Thanks for the patch, Paul. One problem with this is that when you are searching in the preview, the left and right keys change the pages instead of moving the cursor in the search bar. ::: src/mainWindow.js @@ +235,3 @@ Application.documentManager.setActiveItem(null); } + return this._embed.getPreview()._onKeyPressEvent(this,event); We should probably move the whole of _onKeyPressEvent here to consolidate all the keyboard navigation logic in one place.
Created attachment 280694 [details] [review] mainWindow: Handle the back key before everything else
Created attachment 280695 [details] [review] Fix keyboard navigation in preview mode
Review of attachment 280694 [details] [review]: OK
Review of attachment 280695 [details] [review]: If you have tested this to work fine, looks good to me.
Thanks for the review, Cosimo.
*** Bug 736977 has been marked as a duplicate of this bug. ***