Changes

Jump to navigation Jump to search

D2Editor:setExpression

22 bytes added, 18:46, 25 February 2012
Line 19: Line 19:     
function on.charIn(char)
 
function on.charIn(char)
currentText = editor:getText()
+
currentText = editor:getExpression() -- or getText()
 
editor:setExpression(currentText .. char) -- or setText(...)
 
editor:setExpression(currentText .. char) -- or setText(...)
 
--Add char to the editor
 
--Add char to the editor

Navigation menu