enter text button at tail when using keystroke
This commit is contained in:
parent
30509cf45c
commit
fa0352a0e8
@ -380,7 +380,10 @@ byte Readline_ex_unicode(word x_pos, word y_pos, char * str, word * str_unicode,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
int int_pos = ((Mouse_X-Window_pos_X)/Menu_factor_X - x_pos) >> 3;
|
int int_pos = ((Mouse_X-Window_pos_X)/Menu_factor_X - x_pos) >> 3;
|
||||||
|
if (Mouse_K==LEFT_SIDE)
|
||||||
position = (int_pos >= 0 && int_pos <= 255) ? (byte)int_pos : 255;
|
position = (int_pos >= 0 && int_pos <= 255) ? (byte)int_pos : 255;
|
||||||
|
else
|
||||||
|
position = 255; // always edit from the tail if using hotkey
|
||||||
|
|
||||||
if (input_type==INPUT_TYPE_INTEGER && str[0]!='\0')
|
if (input_type==INPUT_TYPE_INTEGER && str[0]!='\0')
|
||||||
snprintf(str,10,"%d",atoi(str)); // align left
|
snprintf(str,10,"%d",atoi(str)); // align left
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user