How to remove 'DONE' button upon the keyboard


#1

Like here, i don’t want this ‘Done’ , it is not necessary for me and not concise.

I have seen the topic : How to have the Done button on the iOS keyboard?
But it does’n work for me.
Any idea?

best regards.


#2

try using like this:

.run(function ($ionicPlatform) {
    $ionicPlatform.ready(function () {
        if (window.cordova && window.cordova.plugins.Keyboard) {
                cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
                cordova.plugins.Keyboard.disableScroll(true);
            }
    });
});

#3

Thank you, mrameezraja, you are right, this instruction control the ‘Done’ button.

cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

Here it my old code;

if (window.cordova ) {
something here;
}
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}

I change it like below, and it works (i had remove the first if-condition):

if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
something here;
}