biud436 / MV

🏰 This plugin package includes helpful features to get you on your way to create your game in RPG Maker MV.
MIT License
64 stars 51 forks source link

Is there any way to move cursor by touch on mobile device in RS_InputDialog plugin ? #39

Closed Bharat0112 closed 8 months ago

Bharat0112 commented 8 months ago

After your last update in RS_InputDialog plugin, one can move cursor by arrow keys on PC. But on android mobile, the touch cannot move the cursor. I am typing long phrases in multiple languages, so if there's a typing mistake I have to delete upto last spell error and type again to correct it. Is there any code modification will allow me do that ?

biud436 commented 8 months ago

I've tried to troubleshoot the problem, but it doesn't seem to be easily resolved. I'll keep this issue open until it's resolved.

Bharat0112 commented 8 months ago

Thank you. Also if I lose the keyboard on Android, then there is no way to bring the keyboard again. Either I have to press Ok or Cancel button. Can we add extra button thru which keyboard can be activated ? May be same solution for above problem, i.e. adding two arrow keys, left and right to move the cursor?

biud436 commented 8 months ago

You can call focus() to bring the keyboard back up. However, since the problem is fundamentally caused by the textbox not being clickable, it seems more urgent to fix this rather than the gain-focus button.

And there's one more thing I want to mention. There is one more way to move the cursor. To move the cursor when typing in any text field, place a finger on the space bar and slide your finger left or right. As your finger moves, so will the cursor one character at a time.

Anyway, I'll try to fix it, and if that doesn't work, I'll do what you said and let you manually move the focus or cursor with the buttons.

biud436 commented 8 months ago

I fixed this issue in v1.3.0.

Bharat0112 commented 8 months ago

Works perfectly. Thank you.