diff options
| author | 2011-08-11 11:04:16 +0100 | |
|---|---|---|
| committer | 2011-08-11 11:08:38 +0100 | |
| commit | 3882486dcdd914b5feb4da35af4f804fb2180e5c (patch) | |
| tree | fac82c531e4a24b5ad9073ed33300aa1a1f369e1 | |
| parent | 5414a1673aab5876e4e80c746f8166d2b975b998 (diff) | |
Allow fractional and signed input for number fields.
Bug: 5150575
Change-Id: I36f8dd59f630d77ea3f4ef6271f4cbaaaa3df0ad
| -rw-r--r-- | core/java/android/webkit/WebTextView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebTextView.java b/core/java/android/webkit/WebTextView.java index b8c4e22735af..2a79caad77be 100644 --- a/core/java/android/webkit/WebTextView.java +++ b/core/java/android/webkit/WebTextView.java @@ -1023,7 +1023,8 @@ import junit.framework.Assert; break; case NUMBER: // inputType needs to be overwritten because of the different class. - inputType = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_NORMAL; + inputType = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_NORMAL + | InputType.TYPE_NUMBER_FLAG_SIGNED | InputType.TYPE_NUMBER_FLAG_DECIMAL; // Number and telephone do not have both a Tab key and an // action, so set the action to NEXT imeOptions |= EditorInfo.IME_ACTION_NEXT; |