tabris icon indicating copy to clipboard operation
tabris copied to clipboard

Text widget with SWT.MULTI has cursor jumping when VerifyListener is added.

Open theanuradha opened this issue 10 years ago • 1 comments

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();
                    }
                });

theanuradha avatar Apr 28 '14 10:04 theanuradha

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.

mpost avatar Apr 28 '14 10:04 mpost