Closed
Bug 839774
Opened 11 years ago
Closed 11 years ago
Sentences should be capitalized
Categories
(Firefox for Android Graveyard :: Keyboards and IME, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: pretzer, Unassigned)
Details
Attachments
(1 file)
541 bytes,
text/html
|
Details |
When typing into a text field, sentences should be automatically capitalized, that means the keyboard should switch to capital letters for the first letter overall and after each full stop for one letter. For example when I type into the comment of a Bugzilla bug without using the shift key in Chrome I get this: "Hello. Firefox is awesome." While in Firefox I get this: "hello. firefox is awesome." The standard inputType for Android text fields would be "textCapSentences", but I'm not sure if that's applicable to our implementation. I'm using SwiftKey, but I guess it's independent of the IME.
Comment 1•11 years ago
|
||
I confirmed that Chrome Beta and JB stock browser automatically capitalize <textarea> text, while Gecko does not. In the attached test case, Chrome and the stock browser capitalize the <textarea>, but none of the other text inputs. Gecko capitalizes the (non-standard) `inputmode="autocapitalize"` text input, but none of the others. We should probably autocapitalize <textarea> text, too.
Comment 2•11 years ago
|
||
GeckoInputConnection.java defaults to lowercase text here: https://hg.mozilla.org/mozilla-central/annotate/tip/mobile/android/base/GeckoInputConnection.java#l430 Is there a way our Java code can determine that the text input is a <textarea>? Or would Gecko core code need to pass that info from C++ to Java?
Comment 3•11 years ago
|
||
(In reply to Chris Peterson (:cpeterson) from comment #2) > GeckoInputConnection.java defaults to lowercase text here: > > https://hg.mozilla.org/mozilla-central/annotate/tip/mobile/android/base/ > GeckoInputConnection.java#l430 > > Is there a way our Java code can determine that the text input is a > <textarea>? Or would Gecko core code need to pass that info from C++ to Java? AFAIK Gecko needs to pass it in (I assume not just for textarea but also for contentEditable/designMode) . This could also be useful for setting InputType. TYPE_TEXT_FLAG_MULTI_LINE, which we do not set currently.
Reporter | ||
Comment 4•11 years ago
|
||
I noticed that my sentences do get capitalized in Nightly now, but that seems to be a recent enhancement by SwiftKey. When I use the stock VKB my sentences still do not get capitalized. Therefore this bug should still be kept open, right?
Reporter | ||
Comment 5•11 years ago
|
||
This was fixed by bug 871884
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•