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

Keybord can't show on button click when prewiev window is disable #442

Closed
VitBr opened this issue Mar 5, 2016 · 3 comments
Closed

Keybord can't show on button click when prewiev window is disable #442

VitBr opened this issue Mar 5, 2016 · 3 comments
Labels

Comments

@VitBr
Copy link

VitBr commented Mar 5, 2016

Hi All!
I need a numeric keypad without a preview window that show only at the click on a button. Not when you focus the input.
I found a problem. The keyboard is displayed only once when you first click. Other clicks keyboard can not show

My code is:

$(function() {
  $('#keyboard').keyboard({
      layout: 'num',
      restrictInput: true,
      openOn: null,
      usePreview: false,      
      display: {
        'a': 'Acept',
        'c': 'Cancel'
      }
    });

  $('#icon').click(function() {
    var kb = $('#keyboard').getkeyboard();
    if (kb.isOpen) { kb.close(); } else { kb.reveal(); };
  });
});

See demo

With parameter usePreview = true everything works correctly and the keyboard appears whenever you click on the icon

@Mottie
Copy link
Owner

Mottie commented Mar 5, 2016

Hi @VitBr!

Thanks for reporting this problem! I'll have it fixed shortly.

@Mottie Mottie added the Bug label Mar 5, 2016
@Mottie Mottie closed this as completed in c2fd308 Mar 5, 2016
@Mottie
Copy link
Owner

Mottie commented Mar 5, 2016

Ok, try your same demo, it will work now!

@VitBr
Copy link
Author

VitBr commented Mar 6, 2016

Amazing. Thank you very much for the quick response. It work!

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

No branches or pull requests

3 participants
@Mottie @VitBr and others