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 725606 - calendar: Grab key focus again after changing day
calendar: Grab key focus again after changing day
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: calendar
3.11.x
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2014-03-03 18:31 UTC by Volker Sobek (weld)
Modified: 2014-03-07 18:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
calendar: Grab key focus again after changing day (1.92 KB, patch)
2014-03-03 18:32 UTC, Volker Sobek (weld)
none Details | Review
calendar: Grab key focus when user changes day (1.65 KB, patch)
2014-03-05 19:41 UTC, Volker Sobek (weld)
none Details | Review
calendar: Grab key focus when user changes day (1.70 KB, patch)
2014-03-07 13:52 UTC, Volker Sobek (weld)
committed Details | Review

Description Volker Sobek (weld) 2014-03-03 18:31:58 UTC
When the user changes the active day by mouse click or keyboard focus
plus key press on a day in the grid, always move the key focus to the
newly activated day. This fixes two issues:

* The keyboard focus was lost after rebuilding the calendar in case the
user clicked on day outside of the current month - this issue already
exists in the 3.10 branch.

* The keyboard focus was no longer set at all when clicking on a day
with the mouse - this was caused by the most recent commits to
calendar.js and is not present in the 3.10 branch.
Comment 1 Volker Sobek (weld) 2014-03-03 18:32:02 UTC
Created attachment 270831 [details] [review]
calendar: Grab key focus again after changing day
Comment 2 Volker Sobek (weld) 2014-03-05 19:41:22 UTC
Created attachment 271023 [details] [review]
calendar: Grab key focus when user changes day

When the user changes the active day by mouse click or keyboard focus
plus key press on a day in the grid, always move the key focus to the
newly activated day. Apparently this was working before (commit
31478e9fb441), but was broken again along the way.
Comment 3 Volker Sobek (weld) 2014-03-07 13:52:21 UTC
Created attachment 271226 [details] [review]
calendar: Grab key focus when user changes day

When the user changes the active day by mouse click or keyboard focus
plus key press on a day in the grid, always move the keyboard focus to
the newly activated day.

This basically restores functionality that was introduced in commit
31478e9fb441 but got lost again in the re-factoring in commit
cc4659f5c697.
Comment 4 Volker Sobek (weld) 2014-03-07 13:54:41 UTC
Updated the commit message to mention the exact commits in which this functionality was introduced and got lost again.
Comment 5 Rui Matos 2014-03-07 17:12:16 UTC
Review of attachment 271226 [details] [review]:

Please initialize the variable on _init(). With that, looks good
Comment 6 Volker Sobek (weld) 2014-03-07 18:29:07 UTC
Attachment 271226 [details] pushed as 257e1f3 - calendar: Grab key focus when user changes day
Comment 7 Volker Sobek (weld) 2014-03-07 18:31:52 UTC
Notice that i pushed the corrected patch, I thought git bz would see this.