Forums » Bugs
[Android] Tab-completion of names doesn't work properly
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.
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.
If you start the name with quotes, this resolves it.
I would argue that is a workaround rather than a fix because such a precaution is not necessary on the PC client.
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.
Aye, yes, it works fine on a PC, however this is an Android workaround.
I do agree it's a bit silly.
I do agree it's a bit silly.
Bump, per recommendation.
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.
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.
Thanks, Ray.