| Thread overview | |||||||
|---|---|---|---|---|---|---|---|
|
December 04, 2006 DFL TextBox, how to prevent key presses handled by default handler ? | ||||
|---|---|---|---|---|
| ||||
In DFL textBox, I have a handler to get key-press events
textBox.keyPress ~= &onCmdKeyPress;
Where onCmdKeyPress is my key handler:
void onCmdKeyPresss(Object obj, KeyEventArgs kea)
{
// my code
kea.handled = true;
}
Irrespective of what I do with kea.handled, the key pressed is always appearing in the text box, how can I prevent it ?
Thanks in advance
Sai
| ||||
December 05, 2006 Re: DFL TextBox, how to prevent key presses handled by default handler ? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Sai | On Mon, 04 Dec 2006 18:32:06 -0500, Sai <dummy@dummy.com> wrote: > In DFL textBox, I have a handler to get key-press events > > textBox.keyPress ~= &onCmdKeyPress; > > Where onCmdKeyPress is my key handler: > > void onCmdKeyPresss(Object obj, KeyEventArgs kea) > { > // my code > kea.handled = true; > } > > Irrespective of what I do with kea.handled, the key pressed is > always appearing in the text box, how can I prevent it ? > > Thanks in advance > Sai > Fixed in today's snapshot. Thanks for letting me know about this. http://wiki.dprogramming.com/Dfl/Snapshots - Chris | |||
December 05, 2006 Re: DFL TextBox - Thank you | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Chris Miller | Thank you
Sai
Chris Miller wrote:
> On Mon, 04 Dec 2006 18:32:06 -0500, Sai <dummy@dummy.com> wrote:
>
>
> Fixed in today's snapshot. Thanks for letting me know about this.
> http://wiki.dprogramming.com/Dfl/Snapshots
>
> - Chris
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply