Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
triggerCloseModal: on(keyUp(), function(event) {
const key = getKey(event);
if (key === 'Escape' || key === 'q' || key === 'x' || key === 'Backspace') {
this.attrs.closeModal();
}
})
});