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

Using IE9 Accept #72

Closed
flean opened this issue May 30, 2012 · 2 comments
Closed

Using IE9 Accept #72

flean opened this issue May 30, 2012 · 2 comments
Labels

Comments

@flean
Copy link

flean commented May 30, 2012

This is my code and I'm applying it to a Asp.Net 4 Textbox but when I hit Accept it doesn't close the keyboard. I've tried calling the accepted with the keyboard.accepted() callback but it starts an endless loop. I was able to close it with keyboard.destroy() but that defeats the purpose. I've also tried with autoAccept on and off.

$('.numpad').keyboard({
keyBinding: 'mousedown touchstart',
layout: 'custom',
autoAccept: true,
restrictInput: true,
acceptValid: false,
validate: function (keyboard, value, isClosing) {
// test value to only allow numbers RegEx between / RegEx /.test
var test = /^\d*(.\d{1,2})?$/.test(value);
// if the value is invalid, clear the input
if (!test) { keyboard.$preview.val(''); }
// return valid test (true or false)
return test;
},
customLayout: {
'default': ['7 8 9', '4 5 6', '1 2 3', '0 00', '{a} {b} .']
},
usePreview: false // no preveiw
});

@Mottie
Copy link
Owner

Mottie commented Jun 12, 2012

Hi flean!

I'll look into this issue soon! Thanks for reporting it!

@Mottie Mottie closed this as completed in 3d097e9 Jun 17, 2012
@Mottie
Copy link
Owner

Mottie commented Jun 18, 2012

This should now be fixed in the latest version... oops autoclosed because of the commit description. Please feel free to reopen this issue if you continue to have problems.

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

2 participants