EddyVerbruggen / cordova-plugin-native-keyboard

:musical_keyboard: Add a Slack / WhatsApp - style chat keyboard to your Cordova app!
273 stars 66 forks source link

Keyboard Defaults to Capitalize on Type email and password #113

Open timbo1437 opened 4 years ago

timbo1437 commented 4 years ago

The default behavior for type="email" and type="password" is to start with the capitalization off. When adding configureNativeKeyboard on an input it is defaulting to capitalization on. Code examples:

<input data-nativekeyboard='configureNativeKeyboard' id="email_panel" class="p-page-input-title-input" type="email" placeholder="Email Address">
  caretColor: '#777777', // default is iOS blue btw
  appearance: 'dark',
  type: 'email',
  returnKey: {
      onPress: function() { console.log('returnKey pressed'); },
      type: 'done'
    }

Screenshots for reference and explanation.

cap_issue

EddyVerbruggen commented 4 years ago

Oh wow I didn’t realize you were going to the native inputfield feature as opposed to the messenger feature of this plugin. I only ever really documented and supported the messenger stuff because it turned out very hard to implement it for all usages (think fonts and crazy custom inputfield styles). And I actually gave up on that part of the plugin once I tried making the emoji keyboard play nice.

But if the problems you are seeing are limited to little things like the one in this bugreport then I’m willing to try and fix them.

timbo1437 commented 4 years ago

Yeah, I noticed the documentation was heavy on the messenger feature... but there is really nothing out there that is as good as your plugin for Cordova when it comes to displaying the keyboard.

I believe most of my issues will be small things like this, I can either hack my way through or find a different solution for most things. If I ever submit something too intensive just let me know, I will find a workaround.

I am going to be using the messenger feature as well, so its very helpful there too.