|
@@ -6,8 +6,8 @@ class Input extends Interactive {
|
|
|
|
|
|
var tf : h2d.Text;
|
|
|
var cursor : h2d.Bitmap;
|
|
|
- var cursorPos(default,set) : Int;
|
|
|
-
|
|
|
+ var cursorPos(default, set) : Int;
|
|
|
+ public var filter = true;
|
|
|
public var value(default, set) : String;
|
|
|
|
|
|
public function new(?parent) {
|
|
@@ -95,7 +95,7 @@ class Input extends Interactive {
|
|
|
tf.font = getFont();
|
|
|
tf.textColor = style.color;
|
|
|
tf.text = value;
|
|
|
- tf.filter = true;
|
|
|
+ tf.filter = filter;
|
|
|
textAlign(tf);
|
|
|
contentWidth = tf.textWidth;
|
|
|
contentHeight = tf.textHeight;
|