File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,13 @@ namespace nbl::ui
137
137
case WM_SETFOCUS:
138
138
{
139
139
eventCallback->onGainedKeyboardFocus (window);
140
+ window->m_flags = (E_CREATE_FLAGS)(window->m_flags .value | ECF_INPUT_FOCUS);
140
141
break ;
141
142
}
142
143
case WM_KILLFOCUS:
143
144
{
144
145
eventCallback->onLostKeyboardFocus (window);
146
+ window->m_flags = (E_CREATE_FLAGS)(window->m_flags .value & ~ECF_INPUT_FOCUS);
145
147
break ;
146
148
}
147
149
case WM_ACTIVATE:
@@ -151,9 +153,11 @@ namespace nbl::ui
151
153
case WA_CLICKACTIVE: [[fallthrough]];
152
154
case WA_ACTIVE:
153
155
eventCallback->onGainedMouseFocus (window);
156
+ window->m_flags = (E_CREATE_FLAGS)(window->m_flags .value | ECF_MOUSE_FOCUS);
154
157
break ;
155
158
case WA_INACTIVE:
156
159
eventCallback->onLostMouseFocus (window);
160
+ window->m_flags = (E_CREATE_FLAGS)(window->m_flags .value & ~ECF_MOUSE_FOCUS);
157
161
break ;
158
162
}
159
163
break ;
You can’t perform that action at this time.
0 commit comments