[wp-trac] [WordPress Trac] #29725: Media library arrow key navigation is triggered in textareas (was: Media library arrow keys: exclude nodeName)

WordPress Trac noreply at wordpress.org
Thu Sep 25 16:16:23 UTC 2014


#29725: Media library arrow key navigation is triggered in textareas
-------------------------+------------------------------
 Reporter:  essha        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:  4.0
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by ryelle):

 Ran into this problem last night- the keyEvent function returns when the
 event target is an input, but not on textareas, so editing the captions
 becomes very frustrating (since the attachment changes out from under
 you).

 [attachment:29725.diff] adds `textarea` to the conditional, and also
 switches to nodeName based on azaozz's comment on r29332.

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


More information about the wp-trac mailing list