mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
haiku: Correctly set keyboard focus (thanks, Kai!).
The message sent upon the window being activated or deactivated, to trigger the call to SDL_SetKeyboardFocus was missing a mandatory parameter. So keyboard focus was never properly set. Fixes Bugzilla #3658.
This commit is contained in:
parent
643f1cb73d
commit
de52dc2948
@ -250,6 +250,7 @@ class SDL_BWin:public BDirectWindow
|
|||||||
|
|
||||||
virtual void WindowActivated(bool active) {
|
virtual void WindowActivated(bool active) {
|
||||||
BMessage msg(BAPP_KEYBOARD_FOCUS); /* Mouse focus sold separately */
|
BMessage msg(BAPP_KEYBOARD_FOCUS); /* Mouse focus sold separately */
|
||||||
|
msg.AddBool("focusGained", active);
|
||||||
_PostWindowEvent(msg);
|
_PostWindowEvent(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user