@ -47,16 +47,13 @@ export default class InputComponent {
return;
}
let stop = false;
for (let listener of this.onKeyListeners) {
stop = stop || listener(e.key, e.ctrlKey);
let stop = listener(e.key, e.ctrlKey);
if (stop) {
break;
e.preventDefault();
e.stopPropagation();