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 705846 - Print shortcut (Ctrl+P) fails when sidebar has focus
Print shortcut (Ctrl+P) fails when sidebar has focus
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: printing
git master
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-12 14:01 UTC by Adam Dingle
Modified: 2014-02-23 10:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Unbind the iconview's ctrl+p (808 bytes, patch)
2013-11-25 16:07 UTC, Michael Wood
none Details | Review
Unbind GtkIconView's Ctrl+p and Ctrl+n (965 bytes, patch)
2014-02-23 08:18 UTC, Anuj Khare
committed Details | Review

Description Adam Dingle 2013-08-12 14:01:47 UTC
To see the problem:

1. Open any PDF file.
2. Click on any sidebar item (such as one of the pages in the Thumbnails or Index views).
3. Press Ctrl+P to print.  Nothing happens.

Oddly, other keyboard shortcuts such as Ctrl+W (Close) work just fine in this situation.
Comment 1 Germán Poo-Caamaño 2013-09-18 19:34:28 UTC
What is happening is:

In the sidebar, Ctrl+P goes to the previous thumbnail. Similarly, Ctrl+N goes to the next thumbnail.  None of them select the page, but there is a dotted line around the thumbnail.

I would think that is related with the listview behavior.
Comment 2 Amol Pol 2013-11-23 09:02:25 UTC
Hi,
I am interested in this bug, can anyone help me with fixing this bug ?
Comment 3 Michael Wood 2013-11-25 16:07:56 UTC
Created attachment 261460 [details] [review]
Unbind the iconview's ctrl+p

If you want to do this, it can be done very simply by unbinding the iconview's default bindings (https://developer.gnome.org/gtk3/stable/gtk3-Bindings.html though I think there is a bug in the docs there Bug 715173)
Comment 4 Carlos Garcia Campos 2013-12-18 14:33:11 UTC
It's a bit inconsistent to leave CTRL+N to go to the next thumbnail but unbind CTRL+P. Wouldn't it be possible to bind it to a different shortcut instead? or unbind both otherwise.
Comment 5 Anuj Khare 2014-02-23 08:18:47 UTC
Created attachment 270044 [details] [review]
Unbind GtkIconView's Ctrl+p and Ctrl+n

Modified Micheal Wood's patch to unbind both Ctrl+P and Ctrl+N.

The same feature is also bound to Ctrl+Up and Ctrl+Down by default.

Now, Ctrl+P opens print dialog box and Ctrl+N opens a copy (default behavior in evince).
Comment 6 Carlos Garcia Campos 2014-02-23 10:37:19 UTC
Comment on attachment 270044 [details] [review]
Unbind GtkIconView's Ctrl+p and Ctrl+n

Pushed to git master, thanks!