feat: add BrowserWindow.isFocusable() (#28642)
This commit is contained in:
parent
69f3e330e7
commit
11199d8824
11 changed files with 52 additions and 0 deletions
|
@ -1080,6 +1080,10 @@ void NativeWindowMac::SetFocusable(bool focusable) {
|
|||
[window_ setDisableKeyOrMainWindow:!focusable];
|
||||
}
|
||||
|
||||
bool NativeWindowMac::IsFocusable() {
|
||||
return ![window_ disableKeyOrMainWindow];
|
||||
}
|
||||
|
||||
void NativeWindowMac::AddBrowserView(NativeBrowserView* view) {
|
||||
[CATransaction begin];
|
||||
[CATransaction setDisableActions:YES];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue