Forums » Bugs

[Android] Tab-completion of names doesn't work properly

Oct 17, 2012 draugath link
Pressing "Tab" on the virtual keyboard to auto-complete a partial name only works if it is the first word on the chat entry bar.

Example 1:
drau<tab>

Result 1:
draugath

Example 2:
/msg drau<tab>

Result 2:
/msg drau

Additionally, with both examples the parent text control, that opened the virtual keyboard, has it's contents replaced by the resultant text.

These results were achieved on a client with no plugins installed.
Oct 17, 2012 Kierky link
If you start the name with quotes, this resolves it.
Oct 17, 2012 Savet link
I would argue that is a workaround rather than a fix because such a precaution is not necessary on the PC client.
Oct 17, 2012 Pizzasgood link
Starting with a " is actually detrimental on the PC - if you skip it, the game will add them as need. However, if you start with a quote on PC, the game fills in the name, but omits the closing quote. So you end up making two unnecessary keystrokes, and the " requires the use of shift as well, at least on my keyboard.
Oct 17, 2012 Kierky link
Aye, yes, it works fine on a PC, however this is an Android workaround.
I do agree it's a bit silly.
Dec 09, 2015 draugath link
Bump, per recommendation.
Dec 11, 2015 raybondo link
You'll be happy to know that I am fixing failed auto-complete issue.
It turns out that iup.K_SP on Android is not the ASCII value for space.

So as a note for plugin writers, when reading strings and looking for certain characters, don't use iup.K_* because they may not be the ASCII equivalent. Use string.byte('<letter>', 1) instead. put it into a local variable global to the file if you don't want to be calling that function all the time.
Dec 12, 2015 draugath link
Thanks, Ray.