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

Synchronize two keyboards #21

Closed
bachp opened this issue Sep 2, 2011 · 2 comments
Closed

Synchronize two keyboards #21

bachp opened this issue Sep 2, 2011 · 2 comments

Comments

@bachp
Copy link

bachp commented Sep 2, 2011

If you have two input fields and you want to simulate a single keyboard for both of them you have to place two keyboards at the same position. This works.

However the experience for the user when switching keyboards is strange. Because the keyboards can have different states (shift vs non-shift).

Is there a way to synchronize them or to reset the keyboard to a default state everytime you change between them?

@Mottie
Copy link
Owner

Mottie commented Sep 2, 2011

Hiya!

Actually that should be relatively easy to do using the visible callback (demo):

visible: function(e, keyboard, el) {
    keyboard.shiftActive = keyboard.altActive = keyboard.metaActive = false;
    keyboard.showKeySet();
}

@bachp
Copy link
Author

bachp commented Sep 2, 2011

Thanks for the hint. I will try it as soon as possible.
Cheers

@Mottie Mottie closed this as completed Sep 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants