macOS: Fix keyboard input not working after toggling full screen
This commit is contained in:
parent
2c13005e0f
commit
d0fa0516f5
1 changed files with 3 additions and 0 deletions
|
|
@ -1644,6 +1644,9 @@ - (void)toggleFullScreen:(nullable id)sender
|
|||
[self setResizeIncrements:NSMakeSize(1.0, 1.0)];
|
||||
[super toggleFullScreen:sender];
|
||||
[self setResizeIncrements:original];
|
||||
// When the window decoration is hidden, toggling fullscreen causes the style mask to be changed,
|
||||
// and causes the first responder to be cleared.
|
||||
if (glfw_window && !glfw_window->decorated && glfw_window->ns.view) [self makeFirstResponder:glfw_window->ns.view];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Reference in a new issue