Re: [webkit-dev] Adding reverse flag to Widget::SetFocus?

2012-09-11 Thread Yoshifumi Inoue
Hi Fady, DateTimeEditElement::focusByOwner() is called on HTMLInputElement::focus() function == JavaScript focus() method. Other than other input types, input type "time" isn't focusable, but DateTimeFieldElement, field, is focusable. So, Focus controller moves focus around fields. In other word

Re: [webkit-dev] Adding reverse flag to Widget::SetFocus?

2012-09-11 Thread Fady Samuel
Hi Youifumi, I'm a little bit confused about what you did. It seems like youalways select the first subelement in your elemnt. void DateTimeEditElement::focusByOwner() { if (DateTimeFieldElement* field = fieldAt(0)) field->focus(); } I don't understand how Shift+Tab works in your code? Thanks,

Re: [webkit-dev] Adding reverse flag to Widget::SetFocus?

2012-09-10 Thread Yoshifumi Inoue
Hi Fady, I have same experience about focus in internal element within container element. I tried to do same thing for multiple fields time input UI for . In the implementation, fields are implemented in shadow DOM hosted by input element. We call fields are DateTimeFieldElement and container for

[webkit-dev] Adding reverse flag to Widget::SetFocus?

2012-09-10 Thread Fady Samuel
Hi all, I'm working on a plugin that needs to deal with focus. I'd like this plugin to look an feel just like any other DOM element including the way it deals with focus. The problem that I have is Widgets know about focus but not focus direction (forward/reverse). My plugin has several logical su