From 3882486dcdd914b5feb4da35af4f804fb2180e5c Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Thu, 11 Aug 2011 11:04:16 +0100 Subject: Allow fractional and signed input for number fields. Bug: 5150575 Change-Id: I36f8dd59f630d77ea3f4ef6271f4cbaaaa3df0ad --- core/java/android/webkit/WebTextView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/java/android/webkit/WebTextView.java') 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; -- cgit v1.2.3