diff --git a/scripts/modules/typographe.js b/scripts/modules/typographe.js index 4a82a8c..7355e2d 100644 --- a/scripts/modules/typographe.js +++ b/scripts/modules/typographe.js @@ -19,6 +19,7 @@ function Typographe(rune) if(!this.layer){ this.create_layer(); } if(cmd.variable("text")){ + this.layer.clear(); this.add_text(this.layer.context(),cmd); } } @@ -68,4 +69,9 @@ function Typographe(rune) ronin.overlay.draw(position); commander.element_input.value = "& "+position.render(); } + + this.key_escape = function() + { + if(this.layer){ this.layer.remove(this); } + } } \ No newline at end of file