I also changed keyUp to only be called explicitly from the keyPress
method when the key is not a return or a tab. However, why is this
call even necessary? Is there some case where a user can type
something and keyPress fires but keyUp does not fire anyway? If that
is the case, then the fix I am making won't work, since I reset the
CPKeyDidPress value in the keyUp function. But right now, on each key
event in a CPTextField, keyUp gets fired twice (unless it's a return
or tab because of the change I just put in there). So it seems like
that explicit call to keyUp should be removed entirely?
Anyway, solution here:
http://github.com/saikat/cappuccino/commit/90811a43efc3b90e8a5d198c11555cc086a91e46
Code i was using to test it here: http://gist.github.com/223352
Tested in Safari 4 and Firefox 3.5.