Shortcut for ENTER

Hello,

What is the shortcut for Enter?
The below code works for F1, but not for ENTER.

<buttonsPanel spacing="true">
	<button id="closeBtn" shortcut="F1"/>
	<button id="getTaskBtn" shortcut="ENTER"/>
</buttonsPanel>

Jmix version: 1.5.5
Jmix Studio plugin version: 2.3.3-242

Hello.

Example you provided works fine.
Can you provide project (or screen files) with non-working shortcut?

Regards,
Ivan

It looks like ENTER does work, however only after first clicking somewhere on the screen!

The moment the screen opens, F1 and ENTER reacts both as F1 is pressed.
Every time you press F1 or Enter key, the notification ‘F1 pressed’ is displayed.
Once you click somewhere on the screen, ENTER reacts correctly.

´´´

<dialogMode positionX="0" positionY="0" height="570px" width="430px"/>
<layout>
    <buttonsPanel spacing="true">
        <button id="f1Btn" caption="F1" shortcut="F1"/>
        <button id="enterBtn" caption="ENTER" shortcut="ENTER"/>
    </buttonsPanel>
</layout>

´´´

@Subscribe("f1Btn")
public void onF1BtnClick(final Button.ClickEvent event) {
    notifications.create(Notifications.NotificationType.WARNING).withDescription("F1 Pressed").show();
}

@Subscribe("enterBtn")
public void onEnterBtnClick(final Button.ClickEvent event) {
    notifications.create(Notifications.NotificationType.WARNING).withDescription("ENTER Pressed").show();
}

Fixed by adding:
getWindow().setFocusComponent(“startScreenGetTaskBtn”);