Project: SWT
Bug 129054 Text widget VerifyListener causes characters to be inserted backwards if you change them
Reported: 2006-02-22 16:07:14 | Status: verified fixed

I have a small program with a Text widget whose VerifyListener actually replaces the characters being entered. Newer 3.2 milestones on Linux cause it to go backwards. Here is a piece of the code so you can see what I'm doing that's triggering this bug, and I'll attach the whole program. thoughts.addVerifyListener(new VerifyListener() { public void verifyText(VerifyEvent e) { if (e.character == '\b') e.doit = false; else { e.text = str.charAt(count.value() % str.length()) + ""; count.increment();}}});

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java