https://bugzilla.wikimedia.org/show_bug.cgi?id=72944

--- Comment #9 from Yusuke Matsubara <w...@whym.org> ---
(In reply to Nemo from comment #6)
> (In reply to Yusuke Matsubara from comment #4)
> > [[Input method]]. Inputting Japanese language typically involves frequent
> > uses of the enter key in the midst of a sentence. This sometimes causes
> > unintentinal saving without the JS hack to prevent it.
> 
> Are such schemes (e.g. the use of enter) documented somewhere?

I don't know of a document specifically explaining this nor what a more general
and cleaner solution than the hack look like, but I'll try explaining the
problem as I see it.

A typical IME window looks like a combo box [1] which appears after you enter
some pre-conversion text and press the conversion key (which is typically the
space bar). In the window, you will select a candidate by going up and down
with the arrow keys and decide on by pushing Enter.

For example, in order to input 誤字を修正しました [2] you may type
"gojiwoshuuseishimashita<space><enter>" (for simplicity, I assume the system
always suggests the correct conversion result at the top candidate). You may
alternatively type
"goji<space><enter>wo<enter>shuusei<space><enter>shimashita<enter>". Some
people prefer the latter, partly because longer fragments (as in the former)
sometimes result in a screwed up conversion due to the greater ambiguity in
word segmentation.

It's not rare for a user to hit Enter twice accidentally while trying to
finalize a piece of conversion, and it results in an unintentional saving if
you are on a text box.

A possible solution I can think of is to detect an IME on/off event [2] and add
a confirmation prompt to ask "do you really want to save this?" upon an Enter
event. (I'm not too about the feasibility.)

[1]
https://dvcs.w3.org/hg/ime-api/raw-file/default/Overview.html#candidate-window
[2] Goji wo shusei shimashita / "I have fixed a typo"
[3]
http://stackoverflow.com/questions/7297124/detect-if-using-ime-for-input-in-browser

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to