Skip to content

Commit

Permalink
Merge branch 't/9584'
Browse files Browse the repository at this point in the history
  • Loading branch information
Garry Yao committed Nov 9, 2012
2 parents 21cba76 + fac600f commit ba3a31b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,10 @@
var control = ev.data.getTarget();
if ( control.is( 'img', 'hr', 'input', 'textarea', 'select' ) ) {
editor.getSelection().selectElement( control );
ev.data.preventDefault();

// Prevent focus from stealing from the editable. (#9515)
if ( control.is( 'input', 'textarea', 'select' ) )
ev.data.preventDefault();
}
});
}
Expand Down

0 comments on commit ba3a31b

Please sign in to comment.