Opened 10 years ago

Closed 10 years ago

#14781 closed defect (invalid)

FilteringSelect: No KeyDown, KeyUp, KeyPress event

Reported by: Paul Christopher Owned by: Douglas Hays
Priority: undecided Milestone: tbd
Component: Dijit - Form Version: 1.7.1
Keywords: Cc:
Blocked By: Blocking:



Overriding onKeyPress, onKeyUp, onKeyDown in my custom dijit.form.FilteringSelect widget seems to have no effect: These handlers are never called.

Overriding onInput works nicely instead.

Steps to reproduce the issue

Run the attached testcase. Watch the console ouput. Only onInput events are fired for some reason. Never are onKeyPress, onKeyUp, onKeyDown fired.


The Dojo toolkit API Viewer says that these key events should be available, too. (But I'm happy that onInput works. That's the event I need..)

Attachments (1) (1.6 KB) - added by Paul Christopher 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Paul Christopher

Attachment: added

comment:1 Changed 10 years ago by Douglas Hays

Resolution: invalid
Status: newclosed

These methods are not invoked unless they're either connected to with dojo.connect or specified in dojo-data-props for a widget. The event onInput is not native on every browser and thus is handled specially for form widgets and is designed to replace onKeyPress and onKeyDown.

Note: See TracTickets for help on using tickets.