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 591526 - Accelerator keys with <super> modifier also triggered by unmodified key
Accelerator keys with <super> modifier also triggered by unmodified key
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.16.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 591161 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-12 04:12 UTC by Lex Trotman
Modified: 2009-08-17 17:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Lex Trotman 2009-08-12 04:12:51 UTC
Please describe the problem:
An accelerator key with a GDK_SUPER_MASK modifier is defined with widget_add_accelerator. The specified signal is emitted for both the modified and unmodified key press.

Steps to reproduce:
1. as above
2. 
3. 


Actual results:
as above

Expected results:
Only the keypress with the super modifier should emit the signal

Does this happen every time?
Yes

Other information:
There are some other application specific bug reports filed in Bugzilla that may also be being caused by this problem.
Comment 1 Christian Persch 2009-08-12 08:27:49 UTC
*** Bug 591161 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Clasen 2009-08-17 17:48:26 UTC
commit 270a95f12e2375227218ec66da4e112d8f331f77
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Mon Aug 17 13:38:06 2009 -0400

    Handle accelerators involving virtual modifiers better
    
    The previous code would trigger on an unmodified 'S' key for a
    'Super+S' accel. The current code avoids that at the cost of breaking
    combinations like 'Mod4+Super+S' which are too exotic to worry about...
    Bug 591526