After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 170874 - Arrow keys should switch pages in fullscreen mode
Arrow keys should switch pages in fullscreen mode
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
0.1.x
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 333851 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-19 06:25 UTC by Grant Farnsworth
Modified: 2006-03-17 19:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (3.51 KB, patch)
2005-06-12 18:36 UTC, Carlos Garcia Campos
none Details | Review
Patch (3.67 KB, patch)
2005-06-23 14:34 UTC, Nickolay V. Shmyrev
none Details | Review
New patch (2.64 KB, patch)
2005-07-03 15:54 UTC, Carlos Garcia Campos
none Details | Review
Updated patch (1.26 KB, patch)
2005-07-03 18:10 UTC, Carlos Garcia Campos
none Details | Review

Description Grant Farnsworth 2005-03-19 06:25:25 UTC
Fullscreen mode is often used for doing (e.g. LaTeX) presentations.  In order to
be consistent with expectations, it would make sense to have the down arrow or
right arrow go to the next slide (page) and the up arrow or left arrow go to the
previous slide.

You might also consider having the enter key go to the next page.  And of
course, the spacebar.

Little details like this make all the difference.  Thanks for your work.
Comment 1 Bryan W Clark 2005-03-24 00:07:34 UTC
spacebar/backspace should work to move pages once bug 165120 is commited.  I'm
not comfortable with adding additional keys to move to the next page, especially
the arrow keys which can move the document around in the viewport.  

Page Down and Page Up are also available for changing pages.  I believe there's
a bug report about using mouse buttons (left/right) to change pages too, not
that we're going to do that.

I'm going to close this WONTFIX, feel free to reopen it if you have other
arguments or ideas.
Comment 2 Grant Farnsworth 2005-03-24 19:36:51 UTC
May I suggest reconsidering at least the right and left arrow keys as valid page
movement commands in fullscreen mode.  In this mode, moving the document around
in the viewport does not make much sense, and the sideways arrow keys are the
standard for moving around in presentations (kpdf, acroread, impress, powerpoint).

Consider this: when zoomed in, the arrow keys move the viewport around, as you
point out.  When in fullscreen they do nothing.  Human expectations, I think,
are that they will change to the prevous/next page.
Comment 3 Bryan W Clark 2005-04-11 19:47:19 UTC
Hi, sorry I had something written for this but lost it last week.

Basically I've come around to agreeing that if we consider that our fullscreen
mode is really just a "make the page take the screen width" then this makes
sense that left/right could move to the previous/next pages.  There shouldn't be
any movement possible in the viewport anyway.  

Any patches for this?
Comment 4 Marco Pesenti Gritti 2005-05-09 10:23:00 UTC
Should we reevaluate this now that we have a presentation mode?
Comment 5 Marco Pesenti Gritti 2005-06-04 18:13:33 UTC
Hmmm wouldnt this (#3 comment) feel strange in continous mode?

I tend to think we should WONTFIX this unless someone come with a good patch. It
adds some mess to the code and I'm not sure it's worth it. Bryan?
Comment 6 Grant Farnsworth 2005-06-11 18:36:57 UTC
Now that we have presentation mode, this bug should be renamed or something and
these changes implemented in presentation mode only.

Arrows and mouse clicks should switch pages in presentation mode.  Fullscreen
mode is good as it currently stands.

Thanks for the quick work!
Comment 7 Carlos Garcia Campos 2005-06-12 18:36:38 UTC
Created attachment 47664 [details] [review]
Proposed patch

I also think it's a useful behaviour in presentation mode. Here is a patch :-)
Comment 8 Marco Pesenti Gritti 2005-06-15 09:12:38 UTC
Can we implement these as GtkUIManager accellerators?
Comment 9 Nickolay V. Shmyrev 2005-06-22 15:05:48 UTC
Bug 305422 has new patch
Comment 10 Nickolay V. Shmyrev 2005-06-23 14:34:10 UTC
Created attachment 48217 [details] [review]
Patch
Comment 11 Nickolay V. Shmyrev 2005-06-23 14:52:43 UTC
Fixed in CVS, thanks
Comment 12 Grant Farnsworth 2005-06-24 17:20:20 UTC
I was just testing this implementation and it's great.  One this is missing,
though:  when people do presentations, they often use the left mouse button to
move forward a slide and right to move backward.  I think these two bindings
should be included in presentation mode.

One reason it might be necessary:  remote controls for doing presentations often
use left and right mouse button events to control the presentation.  And anyway
those buttons are not mapped to anything else in presentation mode.
Comment 13 Carlos Garcia Campos 2005-07-03 15:54:17 UTC
Created attachment 48594 [details] [review]
New patch

Here is a new patch based in my first patch.
Comment 14 Nickolay V. Shmyrev 2005-07-03 16:05:50 UTC
Hi Carlos.

You way of doing things is a bit different. We are trying to use OO programming
style, so instead of connecting to our own singals we just overwrite method
implementation. Look at the function ev_view_button_press_event. It's possible
to do things there. 

But we have another proposal about mouse buttons in presentation mode  - see bug
309364. Do you think it's sensible? Do you have examples of apps that behaves in
fullscreen mode like you propose?
Comment 15 Carlos Garcia Campos 2005-07-03 18:10:32 UTC
Created attachment 48599 [details] [review]
Updated patch

> You way of doing things is a bit different. We are trying to use OO
programming
> style, so instead of connecting to our own singals we just overwrite method
> implementation. Look at the function ev_view_button_press_event. It's
possible
> to do things there. 

Totally agree. I also prefer OO programming. In this patch the things are done
in the button_release event instead of button_press to avoid conflicts when
clicking for selection

> But we have another proposal about mouse buttons in presentation mode  - see
bug
> 309364. Do you think it's sensible? Do you have examples of apps that behaves
in
> fullscreen mode like you propose?

I think most of the presentation apps work in that way, for example OpenOffice
Comment 16 Marco Pesenti Gritti 2005-07-04 07:55:57 UTC
What about text selection?
Comment 17 Carlos Garcia Campos 2005-07-04 09:41:18 UTC
There is no problem.

if (view->selection_info.selections) {
        ev_view_update_primary_selection (view);
} else if (view->document) {

The code is in the else branch. It only runs when there aren't selections.
Comment 18 Marco Pesenti Gritti 2005-07-04 11:13:45 UTC
I mean, left button is already used to select text. Are you enabling this
behavior only when the mouse is not over some text?
Comment 19 Carlos Garcia Campos 2005-07-04 11:34:11 UTC
The actions are associated to button_release event, so if you are using the left
button for selecting, when you finish the selection, the release_event will be
triggered, but view->selection_info.selections will be true and the code for
going to the next page won't be executed.
Comment 20 Marco Pesenti Gritti 2005-07-04 14:42:52 UTC
Bryan, what do you think about this behavior?
Comment 21 Grant Farnsworth 2005-07-12 22:03:09 UTC
I tend to think that text selection is not useful for presentation mode.  I
suggest that mouse clicks be bound to forward/backward movement when in
presentation mode and text selection otherwise.
Comment 22 Marco Pesenti Gritti 2005-09-22 13:03:05 UTC
Fixed up patch for current cvs adn checked in.
Comment 23 Nickolay V. Shmyrev 2006-03-17 19:02:54 UTC
*** Bug 333851 has been marked as a duplicate of this bug. ***