Backed out changeset 00ab51ea2723 (bug 1620778) for test_autocomplete_mac_caret.xhtml failures CLOSED TREE

This commit is contained in:
Bogdan Tara
2020-03-10 12:24:48 +02:00
parent eec634debf
commit 5e7e742b42
6 changed files with 75 additions and 138 deletions

View File

@@ -950,15 +950,6 @@ TextInputListener::HandleEvent(Event* aEvent) {
return NS_ERROR_UNEXPECTED;
}
{
auto* input = HTMLInputElement::FromNode(mTxtCtrlElement);
if (input && input->StepsInputValue(*widgetKeyEvent)) {
// As an special case, don't handle key events that would step the value
// of our <input type=number>.
return NS_OK;
}
}
KeyEventHandler* keyHandlers = ShortcutKeys::GetHandlers(
mTxtCtrlElement->IsTextArea() ? HandlerType::eTextArea
: HandlerType::eInput);