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 786519 - Regression in 3.22.18: Keyboard key release event is not generated for Alt and Shift
Regression in 3.22.18: Keyboard key release event is not generated for Alt an...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 786594 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-08-19 15:50 UTC by Szczepan W.
Modified: 2017-08-22 15:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Szczepan W. 2017-08-19 15:50:02 UTC
My system: 
Fedora Workstation 26 x64 with MATE Desktop
Gtk+ version: 3.22.18-2

I have a browser extension for Chrome/Opera named "Zoomba".
It allows to zoom pages with the mouse wheel, with pressed Control or Shift key.
Recently I noticed, that when I started zooming with Control key pressed, the zoom was changed even when I released the Control key. I debugged it and I saw, that  the javascript event "keyup" was not triggered.
In Gtk version 3.22.17 the problem does not exists.
Uprading only one package gtk3-3.22.18-2 is causing this error.

My extension is not so important, but this problem probably will cause other errors, when keyboard in browsers will be used.

I looked at the differences between these versions, and I found changes in key release event handling in gtkimcontextsimple.c.
Comment 1 Daniel Boles 2017-08-22 11:06:21 UTC
Are you able to test whether this problem is fixed by commit 7a3126f4bb8d5017b1989f112dadd96f87677f50 from bug 786594 ?
Comment 2 Matthias Clasen 2017-08-22 12:21:36 UTC
Pretty sure this is the same issue. Please reopen if you still see it with 3.22.19
Comment 3 Szczepan W. 2017-08-22 15:39:17 UTC
I tested my testcase on the fixed version, and it's OK now.

What I have done:

I 
- downloaded current (fixed) 3.22.18 branch and compiled it in a separate directory
- checked that gtkimcontextsimple.c contains the fix.
- copied a libgtk-3.so.0.2200.18 library  to /usr/lib64
- tested my extension on Chrome and Opera with success
- reinstalled current Fedora Gtk package from the official repository.
- tested again - error occurred as expected
- repeated tests twice to ensure that everything is correct.

So, now I will be used the fixed version and I'll be waiting for the next release from Fedora.
Thank you for so fast reaction :)
Comment 4 Daniel Boles 2017-08-22 15:43:35 UTC
Thanks for confirming!
Comment 5 Daniel Boles 2017-08-22 15:44:05 UTC
*** Bug 786594 has been marked as a duplicate of this bug. ***