Skip to content

Commit

Permalink
haiku: Correctly set keyboard focus (thanks, Kai!).
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
icculus committed May 28, 2017
1 parent 643f1cb commit de52dc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/haiku/SDL_BWin.h
Expand Up @@ -250,6 +250,7 @@ class SDL_BWin:public BDirectWindow

virtual void WindowActivated(bool active) {
BMessage msg(BAPP_KEYBOARD_FOCUS); /* Mouse focus sold separately */
msg.AddBool("focusGained", active);
_PostWindowEvent(msg);
}

Expand Down

0 comments on commit de52dc2

Please sign in to comment.