mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
19 lines
450 B
Plaintext
19 lines
450 B
Plaintext
function textInput(_input, _onModify) : widget() constructor {
|
|
input = _input;
|
|
onModify = _onModify;
|
|
side_button = noone;
|
|
selecting = false;
|
|
|
|
typing = false;
|
|
|
|
static _resetFocus = function() { resetFocus(); }
|
|
|
|
static onKey = function(key) {}
|
|
|
|
static setSideButton = function(_button) { #region
|
|
self.side_button = _button;
|
|
return self;
|
|
} #endregion
|
|
|
|
static breakCharacter = function(ch) { return ch == " " || ch == "\n"; }
|
|
} |