follow from content-input

This commit is contained in:
Shin'ya Ueoka 2017-10-08 09:56:54 +09:00
parent 6f9b217df8
commit e2aae9cff2
3 changed files with 9 additions and 9 deletions

View file

@ -49,6 +49,9 @@ export default class ContentInputComponent {
let stop = false;
for (let listener of this.onKeyListeners) {
stop = stop || listener(e.key, e.ctrlKey);
if (stop) {
break;
}
}
if (stop) {
e.preventDefault();