Fixed it with the following:-

public void onKeyDown(Widget sender, char keyCode, int arg2) {
        if ((keyCode == KEY_LEFT || keyCode == KEY_RIGHT ) && (sender
instanceof TextBox)) {
        DOM.eventCancelBubble(DOM.eventGetCurrentEvent(), true);
        }
}



On Dec 8, 5:25 pm, Ravi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have tree with some tree items each of which hosts atextboxwidget.
> Everytime i press a left or right arrow key (KEY_LEFT / KEY_RIGHT)
> inside thetextboxwithin atreeitem, instead of the cursor moving to
> the right or left of the current cursor position, the parent tree node
> gets selected in case of left arrow key press while nothing happens
> for right key press event.
>
> So, i would like to know if there is any such limitations for the
> textboxes added intotreeitem.
>
> Can someone please provide help on this.
>
> Thanks,
> ravi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to