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

{sign} key does not move caret at the end #607

Closed
chepseskaf opened this issue Oct 2, 2017 · 1 comment
Closed

{sign} key does not move caret at the end #607

chepseskaf opened this issue Oct 2, 2017 · 1 comment
Labels

Comments

@chepseskaf
Copy link

Hi,

I've found that the {sign} key insert minus character but move caret backward from 1 character too.
I try to move caret on validate callback but I found the same issue that #450.

Please see a demo https://jsfiddle.net/chepseskaf/x7ueqmc8/2/

Regards,

@Mottie
Copy link
Owner

Mottie commented Oct 2, 2017

Hi @chepseskaf!

Thanks for letting me know! I'll have it fixed in the next update.

As for the move caret function, it should target the input and not the keyboard (demo):

validate: function(keyboard, value, isClosing) {
		$.keyboard.caret(keyboard.$preview, 'end');
  return true;
}

But you shouldn't need this code to position the caret once I fix the issue.

@Mottie Mottie added the Bug label Oct 2, 2017
@Mottie Mottie closed this as completed in ecab49c Oct 2, 2017
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