Hey Martijn,
2011/6/7 Martijn Moraal <[email protected]>:
> Hello,
>
> I would like to be able to navigate through a WTreeView with my keyboard.
> I.e arrow up and down select the previous and next element, arrow right
> expands the item and arrow left collapses it. However I seem unable to do
> this. When I put a container widget around the treeview and connect to the
> keyWentUp event, I do not receive anything.
> Is there any way to accompish this?
That's because your container widget (or treeview) does not have
focus. You can enable it to receive keyboard events by calling
setAttributeValue("tabindex", "0").
Keyboard navigation for a treeview should actually be in Wt... so I
welcome any work you do in that area! :-)
Regards,
koen
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest