środa, 11 maja 2011

Adding key event to dojo widget

Remember.... if you want your users using any key on whole page in IE you need to pass 'the highest' widget from your page. I just lost some time, because examples on google shows cases from firefox where you can simply pass null and everything works ok.
...
var widget = dojo.byId("some_widget");
dojo.connect( widget, "onkeypress", some_function );
...