Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value: function onInputKeyDown(event) {
if (isKey(event.keyCode, 'ENTER')) {
this.runLocalHooks('accept');
stopImmediatePropagation(event);
} else if (isKey(event.keyCode, 'ESCAPE')) {
this.runLocalHooks('cancel');
stopImmediatePropagation(event);
}
}
}]);
onInputKeyDown(event) {
if (isKey(event.keyCode, 'ENTER')) {
this.runLocalHooks('accept');
stopImmediatePropagation(event);
} else if (isKey(event.keyCode, 'ESCAPE')) {
this.runLocalHooks('cancel');
stopImmediatePropagation(event);
}
}
}
onInputKeyDown(event) {
if (isKey(event.keyCode, 'ENTER')) {
this.runLocalHooks('accept');
stopImmediatePropagation(event);
} else if (isKey(event.keyCode, 'ESCAPE')) {
this.runLocalHooks('cancel');
stopImmediatePropagation(event);
}
}
}
value: function onInputKeyDown(event) {
if (isKey(event.keyCode, 'ENTER')) {
this.runLocalHooks('accept');
stopImmediatePropagation(event);
} else if (isKey(event.keyCode, 'ESCAPE')) {
this.runLocalHooks('cancel');
stopImmediatePropagation(event);
}
}
}]);