mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 23:17:25 +01:00
14 lines
No EOL
410 B
Text
14 lines
No EOL
410 B
Text
/// @description
|
|
kb_hkey = keyboard_key == 0? keyboard_lastkey : keyboard_key;
|
|
kb_time = 0;
|
|
kb_hold = false;
|
|
|
|
KEYBOARD_PRESSED = kb_hkey;
|
|
|
|
if(keyboard_check(vk_backspace))
|
|
KEYBOARD_STRING = string_copy(KEYBOARD_STRING, 1, string_length(KEYBOARD_STRING) - 1);
|
|
else
|
|
KEYBOARD_STRING += keyboard_lastchar;
|
|
|
|
if(WIDGET_CURRENT && is_instanceof(WIDGET_CURRENT, textInput))
|
|
WIDGET_CURRENT.onKey(KEYBOARD_PRESSED); |