asked
2009-05-14 02:58:03 +0800
evpole 481 ● 2 please see this sample
<window title="My First Window" border="normal" width="500px">
<toolbarbutton label="step 1-click here to show pop" popup="popme"/>
<popup id="popme">hellow<textbox value="step 2-click here to focus this popup." width="300px"/></popup>
<textbox value="step 3-click here to test whether the focus get back." onFocus="self.select();" width="400px"/>
</window>
after popup get focus, if you click a textbox outof the popup, the focus dosen't come back(to speek exactly, the onFocus event of the textbox is not fired), you had to click it for a second time.