Opened 9 years ago
Closed 9 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: |
Description
Description
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.
Discussion
The Dojo toolkit API Viewer http://dojotoolkit.org/api/ says that these key events should be available, too. (But I'm happy that onInput works. That's the event I need..)
Attachments (1)
Change History (2)
Changed 9 years ago by
Attachment: | testFilteringSelect.zip added |
---|
comment:1 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.