ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.63k stars 2.23k forks source link

Caps lock on by default while asking input #3754

Closed sollunaastro closed 9 years ago

sollunaastro commented 9 years ago

Before I opted for the beta when a card asked for input the keyboard automatically was on lowercase

Now it starts with mayus on, troublesome with the recognition.

ospalh commented 9 years ago

Hmm. I actually can reproduce this. But then again:

ospalh commented 9 years ago

Is it really caps lock? For me it is caps for the first letter, and lower case from then on.

timrae commented 9 years ago

yeah not really caps lock, but it's a bit more intelligible than the spanish word "mayus"

sollunaastro commented 9 years ago

Yeah, sorry about the misuse of caps lock, I meant shift/mayus I understand it's the standard behavior, I just found the change strange and didn't know if it was intended. When practicing language particles and/or ideograms the lowercase fitted my needs, but I guess proper names get the benefit now. Thanks for addressing this.

ospalh commented 9 years ago

It wasn’t so much intended as just the way some software keyboards apparently work. Anyway, at least for the original Android keyboard, there is a setting to switch off automatic capitalization. For me it worked like this, translated from German to English:

Other keyboards may have similar settings.

hssm commented 9 years ago

Just like we did with autocomplete="off", there is also a parameter for turning off auto-capitlization. Try this test in your Chrome browser on an Android device. The second input box shouldn't allow capitalization (provided your keyboard takes the hint, of course).

I'm not suggesting adding this to AnkiDroid, but a motivated user can use JavaScript to add this tag to the typing element in their template.

ospalh commented 9 years ago

I don’t really know what the Right Thing to do is in this case. I am not against setting autocapitalize="off", just unsure what would be better.

hssm commented 9 years ago

Yeah I don't know either. I don't use this feature so I can't speak from experience. I would guess that most users would be targeting a single-word field where capitalization would be preferred, but then there are sentence clozes where the word is in the middle of the sentence...

I don't think there is a need to keep this issue open. It's not really a bug but maybe something we can adjust in the future.