Opened 9 years ago

Last modified 5 years ago

#17215 new defect

[patch] dojox/gesture/tap et al. do not change focus

Reported by: AJ Shankar Owned by:
Priority: undecided Milestone: 1.15
Component: Events Version: 1.9.0
Keywords: Cc:
Blocked By: Blocking:


As far as I can tell, dojox gestures suppress the underlying native event so as not to duplicate events. This makes sense. However, a side effect is that DOM object focus does not change, e.g. on a tap event. (Usually, the underlying click event would change focus, but it is suppressed, and the virtual event does not do anything.)

This is annoying for anything listening to blur events, since they don't happen, and also for anything that is expecting focus on a click or tap.

I am not sure of the right way to fix this, but I am including a simple patch that explicitly transfers focus on a release (or mouseup). This solves the problem for our purposes.

Attachments (1)

base_diff (184 bytes) - added by AJ Shankar 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by AJ Shankar

Attachment: base_diff added

comment:1 Changed 6 years ago by dylan

Milestone: tbd1.12
Summary: dojox/gesture/tap et al. do not change focus[patch] dojox/gesture/tap et al. do not change focus

comment:2 Changed 5 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.