Project: SWT
Bug 256476 DefaultSelection not being sent from Spinner
Reported: 2008-11-25 13:25:39 | Status: resolved fixed

In Control Example, add a default selection listener to Spinner, hit return while the spinner has focus. No event is sent. Other widgets use NSEvent.keyCode(), but Spinner is using NSEvent.charactersIgnoringModifiers(). We should be consistent if possible. Not sure which approach is better.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Spinner.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java