summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-09-23 17:18:03 -0400
committerLeon Scroggins <scroggo@google.com>2009-09-23 17:18:03 -0400
commitda2757a9cf762906063af0b8901ada0f72ecddbe (patch)
tree53535c656b82b31cffcf64cd62cf1b1326d4a193 /WebKit
parent757f90b7b68402aa3f32c125bd9b302e60c4b50b (diff)
downloadexternal_webkit-da2757a9cf762906063af0b8901ada0f72ecddbe.zip
external_webkit-da2757a9cf762906063af0b8901ada0f72ecddbe.tar.gz
external_webkit-da2757a9cf762906063af0b8901ada0f72ecddbe.tar.bz2
Whether or not a textfield is the last or only, make its action GO.
Fix for http://b/issue?id=2136097 Change-Id: I8ca00498dd5a8d611bc0de5a941faaf596d9f76d
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/nav/CachedRoot.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/WebKit/android/nav/CachedRoot.cpp b/WebKit/android/nav/CachedRoot.cpp
index 595b4b5..9fdd5dc 100644
--- a/WebKit/android/nav/CachedRoot.cpp
+++ b/WebKit/android/nav/CachedRoot.cpp
@@ -776,9 +776,8 @@ CachedRoot::ImeAction CachedRoot::cursorTextFieldAction() const
return NEXT;
}
// If this line is reached, we know that the textfield under the cursor is
- // the last one. If it is also the first, then it is the only one, so make
- // the action GO. Otherwise, the action is DONE.
- return (firstTextfield == cursor) ? GO : DONE;
+ // the last one. Make it GO to allow a submit
+ return GO;
}
const CachedNode* CachedRoot::findAt(const WebCore::IntRect& rect,