Issue #1356 - Remove -moz-user-input disabled to improve event handling.

This commit is contained in:
athenian200
2020-01-16 14:07:04 -06:00
committed by wolfbeast
parent 7e59ac9036
commit 563dc95cdb
23 changed files with 43 additions and 78 deletions
+2 -4
View File
@@ -183,10 +183,8 @@ nsFormControlFrame::HandleEvent(nsPresContext* aPresContext,
WidgetGUIEvent* aEvent,
nsEventStatus* aEventStatus)
{
// Check for user-input:none style
const nsStyleUserInterface* uiStyle = StyleUserInterface();
if (uiStyle->mUserInput == StyleUserInput::None ||
uiStyle->mUserInput == StyleUserInput::Disabled) {
// Check for disabled content so that selection works properly (?).
if (IsContentDisabled()) {
return nsFrame::HandleEvent(aPresContext, aEvent, aEventStatus);
}
return NS_OK;