[wp-trac] [WordPress Trac] #42234: New tag should be added at the `keypress` event instead of `keyup`

WordPress Trac noreply at wordpress.org
Tue Oct 17 04:15:01 UTC 2017


#42234: New tag should be added at the `keypress` event instead of `keyup`
--------------------------+------------------------------
 Reporter:  miyauchi      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by miyauchi):

 Sorry, I made a mistake in order to upload files... :)

 * before.gif - It is a gif animation to reproduce this problem.
 * after.gif - It is a gif animation after solved the problem.

 Japanese kanji has to be confirmed by `enter` key.
 `keyup` event will fire then, but `keypress` or `keydown` will never been
 fire when we confirm kanji.

 Another place for example theme customizer are using `keypress` or
 `keydown`, so adding tag should use `keypress` too.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42234#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list