This commit is contained in:
Tanasart 2025-02-03 15:21:07 +07:00
parent 352c88af5d
commit ff32d508f4
3 changed files with 9 additions and 0 deletions

Binary file not shown.

View file

@ -1,6 +1,7 @@
/// @description /// @description
var ev_id = async_load[? "id"]; var ev_id = async_load[? "id"];
var ev_type = async_load[? "event_type"]; var ev_type = async_load[? "event_type"];
print(ev_type)
switch(ev_type) { switch(ev_type) {
@ -28,4 +29,9 @@ switch(ev_type) {
case "file_drag_leave" : case "file_drag_leave" :
FILE_IS_DROPPING = false; FILE_IS_DROPPING = false;
break; break;
case "virtual keyboard status":
print(async_load[? "screen_height"]);
print(async_load[? "keyboard_status"]);
break;
} }

View file

@ -140,6 +140,7 @@ function textBox(_input, _onModify) : textInput(_input, _onModify) constructor {
static setAutoupdate = function() { auto_update = true; return self; } static setAutoupdate = function() { auto_update = true; return self; }
static activate = function(_def_str = _current_text) { static activate = function(_def_str = _current_text) {
WIDGET_CURRENT = self; WIDGET_CURRENT = self;
WIDGET_CURRENT_SCROLL = parent; WIDGET_CURRENT_SCROLL = parent;
parentFocus(); parentFocus();
@ -846,6 +847,8 @@ function textBox(_input, _onModify) : textInput(_input, _onModify) constructor {
} else { } else {
if(hover && hoverRect) { if(hover && hoverRect) {
print("Hover|");
hovering = true; hovering = true;
if(hide < 3) draw_sprite_stretched_ext(THEME.textbox, 1, _x, _y, _w, _h, boxColor, 0.5 + (0.5 * interactable)); if(hide < 3) draw_sprite_stretched_ext(THEME.textbox, 1, _x, _y, _w, _h, boxColor, 0.5 + (0.5 * interactable));