Using IE9 Accept #72

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

Projects

None yet

2 participants

@flean
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
Owner
Mottie commented Jun 12, 2012

Hi flean!

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

@Mottie Mottie closed this in 3d097e9 Jun 17, 2012
@Mottie
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