Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make BrowserWindow#isFocused() return false when blur() is called
The isFocused() method on macOS works by checking if the selected BrowserWindow is a key window. Unfortunately doesn't work well with focus() and blur() because these weren't calling any macOS APIs that would change the key status of the window. Hence, this changes the implementation of blur() to call orderOut first, which removes the key status of the window. Then when the orderBack function is called, it moves the window to the back of its level in the screen list, without changing the key window. Fixes: #33732 Signed-off-by: Darshan Sen <raisinten@gmail.com>
- Loading branch information