mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1124408 - Report cocoa view focus correctly when sheets are exposed. r=masayuki,smichaud
nsChildView::SetInputContext sets secure input based on IMEInputHandler::IsOrWouldBeFocused, which should report true if the view would get focus if the window got focus. This fixes the function to report NO when the focus would instead go to a sheet 'child window'.
This commit is contained in:
parent
a5c26ca04e
commit
bbd90790c7
@ -3575,7 +3575,7 @@ IMEInputHandler::IsOrWouldBeFocused()
|
||||
NS_ENSURE_TRUE(!Destroyed(), false);
|
||||
NSWindow* window = [mView window];
|
||||
NS_ENSURE_TRUE(window, false);
|
||||
return [window firstResponder] == mView;
|
||||
return [window firstResponder] == mView && ![window attachedSheet];
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK_RETURN(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user