Creating focus manager / overwriting / attaching to focus system
Posted: 08 Jun 2021, 00:20
Hello,
We've had several focus related bugs / investigations.
Latest: something is stealing focus from an element that we called setFocusAction on, we can't find what ... or setFocusAction just doesn't run, I can't figure out why.
I'm wondering how can we in ViewModel.cpp plug into the focusing system, detect focus changes, overwrite/prevent things from focusing or manually focus on an element?
I've read elsewhere FocusManager tends to be implemented by gameteams .. this is probably what we're aiming for, I'm wondering if there's an example?
I kinda just want to start with overwriting SetFocusAction::Invoke(), is that possible?
I've read elsewhere Keyboard.GotKeyboardFocus can be used, but can't find how to do it globally / in ViewModel.cpp.
Do you have any pointers on debugging focus issues? Where to look for what element (by name) just asked for focus/got focus?
Cheers.
We've had several focus related bugs / investigations.
Latest: something is stealing focus from an element that we called setFocusAction on, we can't find what ... or setFocusAction just doesn't run, I can't figure out why.
I'm wondering how can we in ViewModel.cpp plug into the focusing system, detect focus changes, overwrite/prevent things from focusing or manually focus on an element?
I've read elsewhere FocusManager tends to be implemented by gameteams .. this is probably what we're aiming for, I'm wondering if there's an example?
I kinda just want to start with overwriting SetFocusAction::Invoke(), is that possible?
I've read elsewhere Keyboard.GotKeyboardFocus can be used, but can't find how to do it globally / in ViewModel.cpp.
Do you have any pointers on debugging focus issues? Where to look for what element (by name) just asked for focus/got focus?
Cheers.