Skip to content

Commit

Permalink
url-input: handle onKeyPress type event
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Oct 23, 2019
1 parent da212f0 commit 19d5e64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/components/url-input/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { throttle, isFunction } from 'lodash';
import { throttle, isFunction, noop } from 'lodash';
import classnames from 'classnames';
import scrollIntoView from 'dom-scroll-into-view';

Expand Down Expand Up @@ -305,6 +305,7 @@ class URLInput extends Component {
onInput={ stopEventPropagation }
placeholder={ placeholder }
onKeyDown={ this.onKeyDown }
onKeyPress={ this.props.onKeyPress || noop }
role="combobox"
aria-expanded={ showSuggestions }
aria-autocomplete="list"
Expand Down

0 comments on commit 19d5e64

Please sign in to comment.