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

Removing characters using Backspace does not work fine #352

Closed
tiagompb opened this issue May 25, 2015 · 1 comment
Closed

Removing characters using Backspace does not work fine #352

tiagompb opened this issue May 25, 2015 · 1 comment
Labels

Comments

@tiagompb
Copy link

Hi!
I've a small bug issue in the Virtual Keyboard when I'm trying to remove the characters in a TextArea by clicking in the BackSpace button (Bksp). After loading the page, if I already have some text in the TextArea like "tt", for example, when using the Bksp key the first "t" is not removed. It won't let me. This only happens using chrome. In IE11 works fine! If the TextArea begins empty like the examples in the page demo, this problem does not happen.

textarea

I've found out that the issue is here (line 1034 - version v1.22.5):

// add combo back
base.$preview.val( $keyboard.caret( base.$preview ).replaceStr(t2) );
val = base.$preview.val();

If I comment these 2 lines, the bug is fixed, but then the accents don't work anymore like é or ã.

Another strange behavior that I found out in this last version is that the usePreview in a TextArea is not working fine. It does not take the initial text to the preview TextArea. It's blank!

textarea2

Sometimes, If I write a new character, the text is written in the beginning of the TextArea and then the initial text appears again. But sometimes it doesn't. The result is that the initial text is lost, which is quite bad... You can replicate this issue in the page demo.

Thank you so much for your support.

Best regards,
Tiago

@Mottie
Copy link
Owner

Mottie commented Jun 2, 2015

Hi @tiagompb!

Sorry for not responding earlier. I have confirmed this issue and I'll try to work on it this weekend.

@Mottie Mottie added the Bug label Jun 2, 2015
@Mottie Mottie closed this as completed in 8889ec6 Jun 3, 2015
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