Title: [143942] trunk/Source/WebKit/blackberry
- Revision
- 143942
- Author
- [email protected]
- Date
- 2013-02-25 10:10:52 -0800 (Mon, 25 Feb 2013)
Log Message
[BlackBerry] Force form submission when implicit submission fails.
https://bugs.webkit.org/show_bug.cgi?id=110627
Reviewed by Rob Buis.
PR 286023.
When implicit form submission does not submit the form
do a direct submission of the form.
Reviewed Internally by Nima Ghanavatian.
* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::updateFormState):
Modified Paths
Diff
Modified: trunk/Source/WebKit/blackberry/ChangeLog (143941 => 143942)
--- trunk/Source/WebKit/blackberry/ChangeLog 2013-02-25 18:08:50 UTC (rev 143941)
+++ trunk/Source/WebKit/blackberry/ChangeLog 2013-02-25 18:10:52 UTC (rev 143942)
@@ -1,3 +1,20 @@
+2013-02-25 Mike Fenton <[email protected]>
+
+ [BlackBerry] Force form submission when implicit submission fails.
+ https://bugs.webkit.org/show_bug.cgi?id=110627
+
+ Reviewed by Rob Buis.
+
+ PR 286023.
+
+ When implicit form submission does not submit the form
+ do a direct submission of the form.
+
+ Reviewed Internally by Nima Ghanavatian.
+
+ * WebKitSupport/InputHandler.cpp:
+ (BlackBerry::WebKit::InputHandler::updateFormState):
+
2013-02-25 Tiancheng Jiang <[email protected]>
[BlackBerry]Adjust fatfinger detection rect size.
Modified: trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp (143941 => 143942)
--- trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp 2013-02-25 18:08:50 UTC (rev 143941)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp 2013-02-25 18:10:52 UTC (rev 143942)
@@ -991,8 +991,13 @@
InputLog(Platform::LogLevelInfo, "InputHandler::submitForm triggered");
if (elementType(m_currentFocusElement.get()) == InputTypeTextArea)
formElement->submit();
- else
+ else {
handleKeyboardInput(Platform::KeyboardEvent(KEYCODE_RETURN, Platform::KeyboardEvent::KeyChar, 0), false /* changeIsPartOfComposition */);
+
+ // Confirm that implicit submission was accepted.
+ if (isActiveTextEdit())
+ formElement->submit();
+ }
}
static void addInputStyleMaskForKeyboardType(int64_t& inputMask, VirtualKeyboardType keyboardType)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes