Rajesh wrote:
I am trying to put in a patch to use the tab or other keyboard keys to set focus on web page links. I started implementing this based on Corvid's suggestion as mentioned under:
1. borrowing from the dw/findtext.cc iteration code. 2. checking when style->x_link != -1 or you're currently on an embedded form widget.
I have implemented the first part but still needs test. I have a question while implementing the second part. Can you please tell me how to determine if we are on an embedded form widget currently. Can you please send me code snippets or guide me to implement this ? Thanks.
If you're going through some sort of iterator, and you find yourself in something like Embed::iterator() in dw/ui.cc, then you have a form widget. An Embed is a ::dw::core::Widget that contains a Resource. dw/fltkui.cc has the various FLTK resources that are derived from Resource. These generally contain some sort of ::fltk::Widget used for a form input. A fltk::Widget can be given focus with take_focus().