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 333576 - PrintScreen cannot be used
PrintScreen cannot be used
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] Keybinding
2.14.x
Other Linux
: High major
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 343859 348819 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-03-06 08:32 UTC by Wouter Bolsterlee (uws)
Modified: 2006-07-27 11:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Rework invalid keyval ranges (1.59 KB, patch)
2006-04-23 12:32 UTC, Gary Coady
none Details | Review

Description Wouter Bolsterlee (uws) 2006-03-06 08:32:27 UTC
The keybinding applet does not allow me to use "PrintScreen" to take screenshots. An error message telling me that I need to add a modifier key appears, but this is nonsense for the PrintScreen key.

This is a very serious regression... since the default IS PrintScreen, it's really strange the UI doesn't accept the default value at all...
Comment 1 Sebastien Bacher 2006-03-18 14:16:13 UTC
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/control-center/+bug/33102

"Description of the problem:
In gnome-keybinding-properties you cannot set the Pause or Print Screen keys as shortcuts (even though Take a screenshot starts out being set to Print!)

Steps to reproduce:
1. Start gnome-keybinding-properties .
2. Scroll down to Take a screenshot .
3. Click on Take a screenshot and press backspace. The shortcut will be set to Disabled.
4. Click on Take a screenshot and press the Print Screen button.

Expected results:
Key to be assigned and Print to appear in the Shortcut column.

Actual results:
A warning dialog saying:
'The shortcut "Print" cannot be used because it will become unusable to type using this key.
Please try with a key such as Control, Alt or Shift at the same time.'
appears.

Additional information:
Pause suffers this problem too (I use it for Play/Pause) and if you set Shift-Pause as a keybinding then rhythmbox and totem will respond to plain unshifted Pause too."
Comment 2 Guillaume Desmottes 2006-04-19 21:28:11 UTC
This bug is due to the test to check if the key is in a specific range. (gnome-keybinding-properties.c:657)
Here the lower and higher bound of each range:
a: 97  122
A: 65  90
kana: 1185   65406
arabic: 1452  65406
serbian: 1697 1791
greek: 1953  65406
hebrew: 3295  65406
thai: 3489  3577
hangul: 65329  3834

Like PrintScreen have 65377 as value and Pause 65299, these values are rejected.

I'm wondering if it's normal than some ranges are so wide (kana, arabic, greek, hebrew) and than lower bound of hangul's range is greater than its lower bound.
Comment 3 Gary Coady 2006-04-23 12:32:15 UTC
Created attachment 64142 [details] [review]
Rework invalid keyval ranges

The original code assumes that certain defines are contiguous in value, when it's far from the case (GDK_Mode_switch and its aliases, as well as GDK_Hangul_*).

While this code doesn't change certain arbitrary decisions (like 'a' is bad, but '1' is fine), I think it more accurately represents what the writer of the code meant.
Comment 4 Wouter Bolsterlee (uws) 2006-05-14 22:03:02 UTC
Ping... this bug renders the application useless. Can the patch get a review, please? Thanks.
Comment 5 Olav Vitters 2006-06-05 00:22:02 UTC
*** Bug 343859 has been marked as a duplicate of this bug. ***
Comment 6 Olav Vitters 2006-07-26 18:07:45 UTC
*** Bug 348819 has been marked as a duplicate of this bug. ***
Comment 7 Bastien Nocera 2006-07-26 19:43:59 UTC
The patch looks fine. I wasn't too sure where to stop for some of the character blocks. Still, it did stop people from setting 'A' as a shortcut ;)

Rodrigo, Seb, could one of you push this to GNOME 2.15 and 2.14?
Comment 8 Rodrigo Moya 2006-07-27 11:44:32 UTC
Ok, committed to both branches