Avoid re-registering the `keydown` event controller in the media grid so arrow controls don't skip media items.
Fixes #30348 Props UmeshSingla Built from https://develop.svn.wordpress.org/trunk@30377 git-svn-id: http://core.svn.wordpress.org/trunk@30374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cca329174f
commit
02c773efb0
|
@ -387,8 +387,7 @@
|
|||
|
||||
events: {
|
||||
'click .left': 'previousMediaItem',
|
||||
'click .right': 'nextMediaItem',
|
||||
'keydown': 'keyEvent'
|
||||
'click .right': 'nextMediaItem'
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue