zlgopen / awtk

AWTK = Toolkit AnyWhere(a cross-platform embedded GUI)
GNU Lesser General Public License v2.1
3.1k stars 768 forks source link

overlay和popup不响应 EVT_BLUR 事件 #395

Open sqqdfny opened 4 years ago

sqqdfny commented 4 years ago

在做弹窗的时候,有个需求,需要捕获窗口失去焦点的事件,发现 overlay和popup不响应 EVT_BLUR 事件

xianjimli commented 4 years ago

设置为focusable试试。

sqqdfny commented 4 years ago
xianjimli commented 4 years ago

那注册点击事件,如果点击在外面,就认为失去焦点。