36

I was typing a comment into a comment box today. At some point while doing this, I wanted to type a Japanese word into the comment.

So I switch to the Japanese IME with +space. I type some letters and then hit space a few times to select the right completion. At this point, I am happy with the word it's showing, so I hit return to accept the word, and for some reason the JavaScript on the page thought I was submitting the comment and stopped editing it.

I'm pretty sure it isn't supposed to do that.

The first time I had hit some other keys and then delete as well, so I ended up on the previous page and wasn't sure how the focus had even left the text field.

Luckily (?), I was completing a second word in there, which allowed me to figure out what was going on.

In case it matters:

  • OSX 10.11.1 (15B42)
  • Google Chrome 47.0.2526.106 (64-bit)
16
  • Confirming that it occurs on meta.stackoverflow.com as well as stackoverflow.com.
    – Hakanai
    Jan 6, 2016 at 4:36
  • 2
    what what what what fジウェウォwhq
    – user229044 Mod
    Jan 6, 2016 at 4:41
  • 16
    .... confirmed. Appears to happen because the keydown event is being used to submit the form, rather than keypress or the real submit event, neither of which are triggered by selecting the word in the popup.
    – user229044 Mod
    Jan 6, 2016 at 4:41
  • 2
    Related on MSE: meta.stackexchange.com/questions/216834/…
    – Troyen
    Jan 6, 2016 at 6:51
  • What IME do you use? It may have some options to mitigate the problem. Jan 6, 2016 at 8:42
  • As noted in my answer on MSE, I've written a user script to fix this and a bunch of other interface bugs on SO/SE. While waiting for the devs to fix this for everyone, you might want to give it a try. Jan 6, 2016 at 8:47
  • 2
    I'm curious why you'd need Japanese characters on SO, though...
    – Cerbrus
    Jan 6, 2016 at 8:54
  • 1
    @Cerbrus I can guess it has something to do with a question about unicode :)
    – Gimby
    Jan 6, 2016 at 11:39
  • 1
    @Gimby: That's possible, but then it's still odd that the user has a Japanese IME available, and it has to be used in comments...
    – Cerbrus
    Jan 6, 2016 at 11:55
  • 2
    The same happens if you navigate through the context menu and press enter
    – Braiam
    Jan 6, 2016 at 12:02
  • 3
    @Cerbrus I've answered at least one Unicode question that hinged on knowledge of Devanagari. Having to use it in a clarification comment before answering or in a followup comment after answering is not one bit outlandish. Seems to me having to use Japanese is just as banal as my case with Devanagari. I was just lucky that my IME for Devanagari does not need confirmations.
    – Louis
    Jan 6, 2016 at 12:05
  • @Cerbrus isn't there a Stack Overflow in Japanese now? Jan 6, 2016 at 20:37
  • @Cerbrus I had asked a particular question I had about Kuromoji (a lexical analyser for Japanese) over on SO, where I wanted to comment about how I wondered why two of the tokens/terms happened to come out of the analyser in one situation yet not the other. At the time, I wasn't thinking much about why I was switching inputs, but I guess I just did the usual thing of trying not to involve the mouse, which would have been required to copy and paste the existing example on the screen.
    – Hakanai
    Jan 7, 2016 at 3:04

0

You must log in to answer this question.

Browse other questions tagged .