mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Only update the select command for focused text inputs. Bug 394792, r=roc, sr=neil, a=roc
This commit is contained in:
parent
ee42650dde
commit
11b0a24baf
@ -323,6 +323,17 @@ nsTextInputListener::NotifySelectionChanged(nsIDOMDocument* aDoc, nsISelection*
|
||||
|
||||
mSelectionWasCollapsed = collapsed;
|
||||
|
||||
if (!mFrame) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIContent> focusedContent;
|
||||
mFrame->PresContext()->EventStateManager()->
|
||||
GetFocusedContent(getter_AddRefs(focusedContent));
|
||||
if (focusedContent != mFrame->GetContent()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return UpdateTextInputCommands(NS_LITERAL_STRING("select"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user