Skip to content

Commit

Permalink
Leave comment for backspace onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 15, 2018
1 parent 2217c1d commit 9cd9c18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ export class RichText extends Component {
* @param {number} keyCode The key code that has been pressed on the keyboard.
*/
onKeyUp( { keyCode } ) {
// See https://bugs.chromium.org/p/chromium/issues/detail?id=725890
// The input event does not fire when the whole field is selected and
// BACKSPACE is pressed.
if ( keyCode === BACKSPACE ) {
this.onChange();
}
Expand Down

0 comments on commit 9cd9c18

Please sign in to comment.