ibm-js/delite — pull request #300 by wkeese (2014-09-29 11:43:06+00:00)
Title: forward keystrokes from HasDropDown to dropdown via emit() 

Currently when the dropdown is open but the focus is on the host widget, the host widget forwards keystrokes to the popup by calling the popup's handleKey() method (if such a method is defined).

It seems more standard to do that with events, specifically by emitting a keydown event on the popup, and then if the popup calls evt.preventDefault() it means that it handled the keystroke; otherwise it means that the host widget should handle it.

I thought there was another example of us already doing this sort of thing but it slips my mind at the moment. I will update the description (this paragraph) if I think of it later.