Add blur method to window ref #4724
This commit is contained in:
parent
377a8eefb2
commit
704b8335aa
4 changed files with 17 additions and 0 deletions
|
@ -294,6 +294,10 @@ void Window::Focus() {
|
|||
window_->Focus(true);
|
||||
}
|
||||
|
||||
void Window::Blur() {
|
||||
window_->Focus(false);
|
||||
}
|
||||
|
||||
bool Window::IsFocused() {
|
||||
return window_->IsFocused();
|
||||
}
|
||||
|
@ -688,6 +692,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
|||
.MakeDestroyable()
|
||||
.SetMethod("close", &Window::Close)
|
||||
.SetMethod("focus", &Window::Focus)
|
||||
.SetMethod("blur", &Window::Blur)
|
||||
.SetMethod("isFocused", &Window::IsFocused)
|
||||
.SetMethod("show", &Window::Show)
|
||||
.SetMethod("showInactive", &Window::ShowInactive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue