On 10/25/10 7:11 PM, Ed Leafe wrote:
>       While testing out a few things, I tried to bind an action to the '@' 
> key in a textbox, but when I tried typing it, the character appeared normally 
> and the action was not called. Digging into things, it turns out that the 
> correct keyCode (64) was being bound, but when it was typed in the control, 
> the keyCode that was being processed was 50 (i.e., the number 2). So in a way 
> the processing makes sense: I pressed the '2' key and also the Shift key, but 
> it makes binding shifted characters impossible.
>
>       Any ideas?

bindKey() doesn't seem to work very consistently across platforms, even with 
unshifted characters.

But forgetting that for the moment, I think we need an overridden bindKey() at 
the 
dTextBoxMixin level that actually binds to EVT_CHAR and checks the key bindings 
table 
and if found, calls the function.

That should solve your problem.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to