Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

fixed #1811 - clear button on search input textbox isn't visible when multibyte string is inputed #1812

Closed
wants to merge 1 commit into from

Conversation

wtetsu
Copy link

@wtetsu wtetsu commented Jun 10, 2011

Keyup event isn't processed when I input (Japanese) multibyte string.
I use setTimeout to implement it.

@scottjehl scottjehl closed this Jun 19, 2011
@scottjehl
Copy link

Thanks. However, I can't reproduce this issue (at least not in Chrome), can you please create a demo page for it and let us know which browsers the issue occurs?
Also, this commit uses setInterval to start the polling, but the clear is handled with clearTimeout (rather than clearInterval). I'm guessing that may be a typo? I'd like to see some experimentation with different events before resorting to intervals, so we're going to close this for now, but please resubmit with a demo if you can. thanks!

@wtetsu
Copy link
Author

wtetsu commented Jun 20, 2011

Thank you for your response! And excuse my lack of information...

I could reproduce the problem on jQuery Mobile Alpha4.1 demo page.
I used devices as follows:

*Safari: iPhone 3GS(iOS 4.3.3)
*Safari: iPhone 4(iOS 4.3.1)
*Browser: Galaxy S(Android 2.2)

I made a movie to share this issue.

iPhone 3GS:
http://www.youtube.com/watch?v=rVGlsWpLsLA

Galaxy S:
http://www.youtube.com/watch?v=eP6rmddBiQg


Note:
I made a further investigation.

On iPhone, There are two type of Japanese input methods: romaji input and flick input.
I usually use flick input, and the issue is reproduce only if I use flick input.
If I use romaji input, it works fine.

Further more, on Galaxy S, I could reproduce the issue if I use romaji input.

Romaji is combination of a vowel and consonant.

  • a:あ
  • i:い
  • u:う
  • e:え
  • o:お
  • k, a :か
  • k, i :き
  • k, u :く
  • ...

It seems to me that keyup event isn't fired when I input vowel only characters like あ(a), い(i), う(u), え(e) and お(o).

When I input other chars like か(ka), き(ki) く(ku) and so on, keyup event is fired.


Also, this commit uses setInterval to start the polling, but the clear is handled with clearTimeout (rather than clearInterval).
I'm guessing that may be a typo? I'd like to see some experimentation with different events before resorting to intervals, so we're going to close this for now, but please resubmit with a demo if you can. thanks!

Sorry for my typo... And I agreed to close this.
Thank you very much!

@wtetsu
Copy link
Author

wtetsu commented Jun 20, 2011

I add a postscript.
I could reproduce the issue by using voice input on Galaxy S.

@scottjehl
Copy link

Thanks! Can you reproduce it on latest?

@wtetsu
Copy link
Author

wtetsu commented Jun 20, 2011

Thank you.
Yes, If "latest" is this page, I can reproduce it.
http://jquerymobile.com/test/#/test/docs/forms/forms-search.html

If I should build from latest source on github, I'm going to try it.

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

Successfully merging this pull request may close these issues.

2 participants