Need Lost Focus Block in text box

Hi Makeroid team,
I need lost focus Block. .Request focus Block is already implemented.

example. when click on the button or press enter then call to lost focus Block.
Example-
Like this in device browser


Other in Chrome

Device massage app

makeroid

1 Like

If you see carefully the textbox doesn’t lose focus at any point in the first and third video, it just hides the keyboard. And you could do that too, there’s a block for hiding the keyboard

And if you wanna achieve what’s in the second video maybe add another textbox and set it’s visibility to false. So when the user touches somewhere else or scrolls then shift the focus to the non visible text box and then hide the keyboard, this will make your main text box lose focus

2 Likes

Not Makeroid

It is

Kodular

Makeroid Is old name

It’s a good answer, but setting textbox to invisible and trying to force focus on it doesn’t work in some android versions.

The best solution is to create a textbox with size of 1px/1px and request focus to that element. There’s taifun extension which contains TextBox.Enter event listener, so you can set the action on enter press - in your case request forcus for other textbox.

2 Likes

Take a extra textbox and make it invisible when you want to lost the focus of any textbox then at that time request focus on invisible textbox by that the textbox that had focus will be lost

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.