From a86941f47c1e47a169fdcd6f0732723aeadffe09 Mon Sep 17 00:00:00 2001 From: Vladyslav Serhiiev Date: Fri, 24 Jan 2020 16:38:45 +0200 Subject: [PATCH] fixed broken ctrl+c --- js/text.js | 1 + 1 file changed, 1 insertion(+) 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();