Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close keyboard? #1

Open
markshust opened this issue May 3, 2016 · 10 comments
Open

close keyboard? #1

markshust opened this issue May 3, 2016 · 10 comments

Comments

@markshust
Copy link

How does one close the keyboard after data input?

@mnill
Copy link
Owner

mnill commented May 3, 2016

Click into webview?

@markshust
Copy link
Author

I'm not sure I understand. We have no webview in safari ;)

@markshust
Copy link
Author

I'm thinking there should be an equivalent CustomKeyboard.close?

@mnill
Copy link
Owner

mnill commented May 3, 2016

I am sorry, it is plugin for cordova. Cordova - html5 crossplatform applications platform based on webviews. It will not working in safari.

@markshust
Copy link
Author

markshust commented May 3, 2016

I'm sorry -- I meant embedded browser in Simulator.

Once CustomKeyboard is triggered, it never closes, no matter what is focused on. I'm just showing the simulator persisting the keyboard no matter what I do:

screen shot 2016-05-03 at 12 53 05 pm

I'd expect on blur, it to close.

@mnill
Copy link
Owner

mnill commented May 3, 2016

On my devices all works fine(i am not tested on simulators, will try it later). Are you sure you correctly install and use my plugin? Decemical(not number keyboard) looks like this:
img_0020

With dot symbol in left bot, you have opened standard number keyboard.

@markshust
Copy link
Author

Yes, pretty sure i'm triggering it correctly. In this case, I just wanted the keypad:

    if (_.isObject(CustomKeyboard)) {
      CustomKeyboard.open(this.state.numSingles, 5, function (value) {
        console.log('custom', value)
      });
    }

The keypad shows correctly (even all the different types), however it doesn't close automatically on blur.

@mnill
Copy link
Owner

mnill commented May 3, 2016

It is strange, i tested just right now. All works fine, even in simulator.

Anyway i realized 'close' method for you.

If you want to contribute, or anyone also faced with same issue there is minimum worked project with pure cordova for testing.

keyboard.zip

@rafaellop
Copy link

I also cannot close the keyboard. Both in the sim and on a device (the newest ios). What's interesting the keyboard closes when taping on some html elements for example title bar or another input which, but not on some other without a particular case.

@mnill
Copy link
Owner

mnill commented Jul 3, 2016

Looks like invisible full screen div can resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants