Skip to content

Commit

Permalink
DevTools: Don't use event.keyIdentifier
Browse files Browse the repository at this point in the history
It is deprecated.

Bug: 633619
Change-Id: I24e33f31bf84fcd53ab5c8878e83ae6be872ff16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1504754
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#640589}
  • Loading branch information
JoelEinbinder authored and Commit Bot committed Mar 14, 2019
1 parent b01361b commit 2f0ded1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Accessibility.ARIAAttributesTreeElement = class extends UI.TreeElement {
return;
}

if (event.keyCode === UI.KeyboardShortcut.Keys.Esc.code || event.keyIdentifier === 'U+001B') {
if (isEscKey(event)) {
this._editingCancelled();
event.consume();
return;
Expand Down

0 comments on commit 2f0ded1

Please sign in to comment.