How do i find out which GWT element has focus?

后端 未结 4 584
深忆病人
深忆病人 2021-01-13 07:58

I would like to find out, in GWT, which element currently has focus. Basically i was working on virtual keyboard in our application. All keys are working fine except tab key

4条回答
  •  离开以前
    2021-01-13 08:50

    document.activeElement doesn't work in all browsers so there's no support for that in GWT. You could maybe use focus&blur handlers to keep track which element has it.

提交回复
热议问题