Skip to content

Commit

Permalink
fixed broken ctrl+c
Browse files Browse the repository at this point in the history
  • Loading branch information
reni-min authored Jan 24, 2020
1 parent fdd5595 commit a86941f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a86941f

Please sign in to comment.