jh-changes
Shin'ya Ueoka 7 years ago
parent 941073404b
commit c2a663a64d
  1. 9
      src/content/components/common/input.js

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