Fix for missing JS KeyEvent
Koos Vriezen
koos.vriezen at xs4all.nl
Fri Oct 11 18:05:37 BST 2002
On Fri, 11 Oct 2002, David Faure wrote:
>
> On Saturday 28 September 2002 12:24, Koos Vriezen wrote:
> > Hi,
> >
> > I noticed that the onkeydown event in JS, as in
> > 'document.onkeydown=myOnKeyDown;', gets an UIEvent and not a KeyEvent.
> > KHTML has support for it, but isn't available for JS. The attached patch
> > fills that gap
>
> One question: are you sure about the property named "key" ?
> Shouldn't it be named keyVal (as in the DOM spec) instead?
I think you're right. Thanks.
>
> (For MSIE compatibility it looks like we should also add "keyCode" as an alias.
> http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/keycode.asp)
Ok. And a textInput event?
Next week I see if I can fix some of it.
Regards,
Koos
More information about the kfm-devel
mailing list