[mochikit] Re: Signal - modify key event

2006-03-15 Thread Beau Hartshorne
Can't you just do a toUpperCase onblur? If you don't want to do that, you could do something like this: input id=upper type=text / script MochiKit.Signal.connect('upper', 'onkeyup', function(e) { var c = e.key().code; if (65 = c c = 90) { var u =

[mochikit] Re: Signal - modify key event

2006-03-15 Thread David Bernard
Thanks, I can't use onblur, for end-user it's more visual if the transformation is done when key are pressed instead when input is leaved. I also want to add a set of key control on keypress, to only allow a predefined set of key, or a regexp... and may be create a formattedtextfield later.