tabris
tabris copied to clipboard
Text widget with SWT.MULTI has cursor jumping when VerifyListener is added.
Text widget with SWT.MULTI flag has issue when have VerifyListener.
cursor move to beginning when suggestion shown. (ON ANDOID )
eg:
textField = new Text(parent,SWT.MULTI)
textField.addVerifyListener(new VerifyListener()
{
@Override
public void verifyText(VerifyEvent event)
{
event.text = event.text.toUpperCase();
}
});
Thanks for the feedback. Having the cursor jump is not the intended behavior and should be fixed.
Using the verify listener to turn the text into upper case is discouraged as this leads to unpredictable output when typing very fast and the server response comes in slow.
In Tabris 1.4 we are adding client scripting support which should remedy the problem.