mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
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 _glfwPlatformUpdateIMEState(_GLFWwindow *w, const GLFWIMEUpdateEvent *ev) {
|
|||
[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…
Add table
Add a link
Reference in a new issue