Open sqqdfny opened 4 years ago
在做弹窗的时候,有个需求,需要捕获窗口失去焦点的事件,发现 overlay和popup不响应 EVT_BLUR 事件
设置为focusable试试。
我按照上面的参数,把focusable设置为true, 没有效果, ovrelay 和 popup 都不响应 EVT_BLUR 事件。 其中 popup 类似于 dialog,把下层窗口的所有控件都不响应触摸屏了。 overlay窗口打开时,点下层窗口时,控件有响应,但overlay窗口不会隐藏,也不响应 EVT_BLUR 事件。
那注册点击事件,如果点击在外面,就认为失去焦点。
在做弹窗的时候,有个需求,需要捕获窗口失去焦点的事件,发现 overlay和popup不响应 EVT_BLUR 事件