I have a global filter (Display.addFilter
) in SWT in which I want to detect Enter key. In Windows, pressing Enter generates SWT.CR
in keyCode part of KeyListener event. Is this assumption safe for all platforms, or should I check if
keyCode == SWT.CR || keyCode == SWT.LF?
Thanks.