Fix a misnamed variable in the keys port input handler (#520)

This commit is contained in:
Jonathan Cohen 2019-10-22 18:25:08 -04:00 committed by GitHub
parent ccd93a626a
commit 2e3266d529
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -291,11 +291,11 @@
_handleKeysPortInputKeyUp: function(e) {
let input = this.$.keysPortInput;
const badInputMessage = this.localize('error-keys-port-bad-input');
if (event.key === 'Escape') {
if (e.key === 'Escape') {
this.cancelKeysPortEdit();
input.blur();
return;
} else if (event.key === 'Enter') {
} else if (e.key === 'Enter') {
if (!input.invalid) {
this.saveKeysPort();
input.blur();