From e732715c137df0c840738787f85de5fe8f3d2cc7 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 1 Feb 2017 15:25:34 -0700 Subject: [PATCH] Fixed issue with Typo --- scripts/modules/typographe.js | 6 ++++++ 1 file changed, 6 insertions(+) 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