2023-10-03 12:14:28 +07:00
|
|
|
function textInput(_input, _onModify) : widget() constructor {
|
2023-10-03 09:29:58 +07:00
|
|
|
input = _input;
|
|
|
|
onModify = _onModify;
|
2023-10-03 12:14:28 +07:00
|
|
|
selecting = false;
|
2023-03-08 20:59:54 +07:00
|
|
|
|
2023-12-18 10:40:21 +07:00
|
|
|
typing = false;
|
|
|
|
|
2024-07-10 09:14:37 +07:00
|
|
|
parser_server = noone;
|
|
|
|
|
|
|
|
autocomplete_delay = 0;
|
|
|
|
autocomplete_modi = false;
|
|
|
|
use_autocomplete = true;
|
|
|
|
autocomplete_server = noone;
|
|
|
|
autocomplete_object = noone;
|
|
|
|
autocomplete_context = {};
|
|
|
|
|
|
|
|
function_guide_server = noone;
|
|
|
|
|
2023-03-08 20:59:54 +07:00
|
|
|
static _resetFocus = function() { resetFocus(); }
|
2023-06-20 19:43:19 +02:00
|
|
|
|
|
|
|
static onKey = function(key) {}
|
2023-11-01 14:10:25 +07:00
|
|
|
|
2023-11-27 17:40:28 +07:00
|
|
|
static setSideButton = function(_button) { #region
|
2023-11-01 14:10:25 +07:00
|
|
|
self.side_button = _button;
|
|
|
|
return self;
|
2023-11-27 17:40:28 +07:00
|
|
|
} #endregion
|
|
|
|
|
|
|
|
static breakCharacter = function(ch) { return ch == " " || ch == "\n"; }
|
2024-03-31 16:10:14 +07:00
|
|
|
|
|
|
|
static clone = function() {
|
|
|
|
var _onModify = onModify;
|
|
|
|
onModify = noone;
|
|
|
|
|
|
|
|
var cln = variable_clone(self);
|
|
|
|
cln.onModify = _onModify;
|
|
|
|
onModify = _onModify;
|
|
|
|
|
|
|
|
return cln;
|
|
|
|
}
|
2023-01-17 14:11:55 +07:00
|
|
|
}
|