aboutsummaryrefslogtreecommitdiff
path: root/src/components/content-input.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/content-input.js')
-rw-r--r--src/components/content-input.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/content-input.js b/src/components/content-input.js
index 0f15937..9568caf 100644
--- a/src/components/content-input.js
+++ b/src/components/content-input.js
@@ -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();