Opened 8 years ago

Closed 8 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)

testFilteringSelect.zip (1.6 KB) - added by Paul Christopher 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by Paul Christopher

Attachment: testFilteringSelect.zip added

comment:1 Changed 8 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.