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

On Chromium, Backspace doesn't clear context #423

Open
divec opened this issue Dec 18, 2015 · 1 comment
Open

On Chromium, Backspace doesn't clear context #423

divec opened this issue Dec 18, 2015 · 1 comment

Comments

@divec
Copy link
Contributor

divec commented Dec 18, 2015

[Copied from https://phabricator.wikimedia.org/T121849 ]

Steps to reproduce:

  1. In Chromium, go to http://thottingal.in/projects/js/jquery.ime/examples/ and select Malayalam transliteration.
  2. Press 'c' twice. The text becomes: ക്ക്
  3. Press 'c', again. The text becomes: ക്ക്ൿ
  4. Press Backspace. The text reverts to: ക്ക്
  5. Press 'h'.

Observed behaviour:
At step 5, the text becomes: ച്ച് - that is, ക്ക്h has been transliterated in the context 'cc' (as if steps 3 and 4 had never happened).

Expected behaviour (as seen on Firefox):
At step 5, the text becomes: ക്ഖ് - that is, ക്ക്h has been transliterated in the context ''.

Reason:
This happens because jQuery.IME clears the context on backspace keypress, but Chromium doesn't fire keypress events for backspace or many other non-character keys. Instead, the context should be cleared on backspace keydown.

@santhoshtr
Copy link
Member

the context should be cleared on backspace keydown.

👍

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

No branches or pull requests

2 participants