diff --git a/js/text.js b/js/text.js index f3decef..894048d 100644 --- a/js/text.js +++ b/js/text.js @@ -198,6 +198,7 @@ export default class TextTool { this.input.focus(); this.reLimit(); this.input.onkeydown = (e) => { + if (event.target !== document.body) return; if (e.ctrlKey && e.keyCode === KEYS.enter) { this.apply(); e.preventDefault();