Hello. Today I searched for the Enter code in SWT, but I didn’t find anything like this in the SWT class (that's what it is called; there are constants that are responsible for including the keikodes), although the rest are present. Then I caught the debugger and entered the literals. Then I went through the search for this class and dug up the Enter code located on the keypad. The usual Enter'a code is not found. Question: since SWT is tied to an axis, can it be that this listener, if the project is launched on another platform, will not respond to the usual Enter?

  • @Artyom Bykov, If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Sleeping Owl

1 answer 1

Maybe SWT.CR , by analogy with SWT.KEYPAD_CR

  • Exactly, it is, thank you =) There, just in the commentary to the constant, it is written about carriage return, which is what the enterter basically does (carriage return) - Artem Bykov