#2140: Firefox (MacOSX): Invalid capturing of enter-key event
----------------------+-----------------------------------------------------
Reporter: hidekaz | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version: FCKeditor 2.6
Resolution: | Keywords: HasPatch
----------------------+-----------------------------------------------------
Comment(by keit):
I have the same problem with hidekaz found. I'll attach my fix as I think
hidekaz's patch is incomplete. His patch is discarding all the Enter-key
events including the events not to do with Japanese input method(IME).
Here is some background.
Generally, IME(Input method editor) is used to assist entering Japanese
characters. User enters roman characters phonetically and IME converts the
roman characters into Japanese when user hits enter key(hereafter I call
this enter "Conversion Enter"). Enter key is also used as a carriage
return as usual(I call this enter "Normal Enter").
For the "Conversion Enter", DoEnter function should not be executed
because "Conversion Enter" is just to tell IME to convert the characters
being entered while the function should be executed for "Normal Enter".
In order to distinguish "Conversion Enter" and "Normal Enter", it seems
that Firefox generates keydown and keypress events for "Normal Enter" but
only keydown for "Conversion Enter". Inside keydown handler, there is no
way to tell which enter the event is for as far as I know. This means that
we need to postpone DoEnter processing until keypress event is fired(i.e.
if keypress is called, the event is for normal enter so replace enter key
with <p> block or whatever.)
--
Ticket URL: <http://dev.fckeditor.net/ticket/2140#comment:2>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac