Arrow keys of keyboard not works in TextArea and Texbox after adding as tree item widget in gwt
public class TreeWidget implements EntryPoint {
@Override
public void onModuleLoad() {
VerticalPanel panel=new VerticalPanel();
TextArea textArea=new TextArea();
Tree tree=new Tree();
TreeItem item=new TreeItem();
item.addItem(textArea);
tree.addItem(item);
panel.add(tree);
RootPanel.get().add(panel);
}}
}
I think keyboard navigation of the tree is capturing key events.
You can disable it this way: create an instance of tree that doesn’t use keyboard navigation. You must override the method that tells, for each treeitem, if keys are used or not.
Simplest way:
If it works, then the problem is keyboard navigation. You can ask if the tree item is that with the textarea and
return falseto let the keyboard work for text.