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

Virtual Keyboard stays visible but should disappear #41

Open
usmfun opened this issue Jan 13, 2022 · 5 comments
Open

Virtual Keyboard stays visible but should disappear #41

usmfun opened this issue Jan 13, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@usmfun
Copy link

usmfun commented Jan 13, 2022

If you have a input field and allow the user to use the physical keyboard as well (allowRealKeyboard and allowMobileKeyboard are both true). The user then leaves the input field by pressing the tab key causes the onscreen keyboard to remain visible. However in this case the input field it should disappear. Same as if you clicked outside the listener.

@furcan furcan self-assigned this Jan 15, 2022
@furcan furcan added the bug Something isn't working label Jan 15, 2022
@furcan furcan added enhancement New feature or request and removed bug Something isn't working labels Jun 21, 2022
@Adesh66
Copy link

Adesh66 commented Oct 27, 2022

Hey @furcan
I found one use case. I have added an input with kiosk-keyboard and I open the keyboard. Now I have a listener on the idle page. I mean when user left the page idle for 1 minute and keyboard is open. I'm redirecting it to the Another page as It was idle screen case. In that case my keyboard is still visible on the another redirected page as well but there is no input field.

Can you suggest how to close the keyboard in that scenario before redirecting or from any function?

@furcan
Copy link
Owner

furcan commented Oct 28, 2022

@Adesh66 in your case you can disable the CSS animations.

  // CSS animations for opening or closing the keyboard, default is "true"
  cssAnimations: false,

@Adesh66
Copy link

Adesh66 commented Oct 28, 2022

@furcan this property didn't worked for me.
Before redirecting I clicked the enter button to fix this issue at my end.

if (document.querySelector('.kioskboard-key-enter')) { document.querySelector('.kioskboard-key-enter').click(); }

@furcan
Copy link
Owner

furcan commented Oct 28, 2022

@furcan this property didn't worked for me. Before redirecting I clicked the enter button to fix this issue at my end.

if (document.querySelector('.kioskboard-key-enter')) { document.querySelector('.kioskboard-key-enter').click(); }

Then, you can even click to body if you want. Thanks.

@Adesh66
Copy link

Adesh66 commented Oct 28, 2022

Yeah Right!
Can trigger on body as well.

Thanks

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

No branches or pull requests

3 participants