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 634624 - Can't assign "Alt+Print Screen" shortcut to "take a screenshot of a window"
Can't assign "Alt+Print Screen" shortcut to "take a screenshot of a window"
Status: RESOLVED INCOMPLETE
Product: gnome-control-center
Classification: Core
Component: Keyboard
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-11 19:48 UTC by Victor Vargas
Modified: 2011-05-10 15:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Victor Vargas 2010-11-11 19:48:03 UTC
This report was originally filled at:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/621516


It used to be possible to take a screenshot of an active window in Gnome by simply pressing "Alt+Print Screen". This no longer works (for me) in Maverick Meerkat. I have to reassign the shortcut to something else, e.g. "Ctrl+Print Screen" still works.

xev shows the following then Alt key is pressed:

KeyRelease event, serial 33, synthetic NO, window 0x4000001,
    root 0x15e, subw 0x0, time 44758237, (570,132), root:(571,176),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
Comment 1 Bastien Nocera 2010-11-16 15:47:36 UTC
There seems to have been absolutely no attempts at debugging this.

Please test this with the 2.32 control-center.
Comment 2 trondsg 2010-11-16 22:07:12 UTC
This bug is still in 2.32.
Comment 3 Bastien Nocera 2010-11-16 22:39:03 UTC
(In reply to comment #2)
> This bug is still in 2.32.

Then I'd like a few more details on how to reproduce the problem.
Comment 4 trondsg 2010-11-17 09:36:50 UTC
In Ubuntu 10.10:

Run gnome-keybinding-properties. You will get a table with actions on the left and shortcuts on the right. 

Try to set a shortcut to Ctrl+Print Screen. It works properly. (It doesn't matter if the action is take screenshot or not, it's the same for all actions.)

Then try to set the shortcut to Alt+Print Screen. This doesn't work. It won't set. The shortcut field keeps saying "New shortcut..." instead of Alt+Print.
Comment 5 Bastien Nocera 2011-03-17 14:38:52 UTC
(In reply to comment #4)
> In Ubuntu 10.10:

I don't have Ubuntu 10.10...

> Run gnome-keybinding-properties. You will get a table with actions on the left
> and shortcuts on the right. 
> 
> Try to set a shortcut to Ctrl+Print Screen. It works properly. (It doesn't
> matter if the action is take screenshot or not, it's the same for all actions.)
> 
> Then try to set the shortcut to Alt+Print Screen. This doesn't work. It won't
> set. The shortcut field keeps saying "New shortcut..." instead of Alt+Print.

And this worked fine with GNOME 2.32 for me, and still does in GNOME 3.

On my keyboard, I get "Alt + SysRq" instead of "Alt+PrintScreen" when capturing the keys, and they work as expected.

Please check whether it works any better using a different keymap (such as the very basic "USA" one), and check whether you have things like the magic SysRq key enabled in the kernel (used for debugging).
Comment 6 trondsg 2011-05-10 15:43:19 UTC
It works now with Gnome 2.32.1 in Ubuntu 11.04 and the same keyboard settings as before.