make typeAssumption delete button not focusable using tab

This commit is contained in:
ucrhh 2021-03-01 11:21:05 +01:00
parent dda2f4747b
commit b282064f72

View File

@ -58,6 +58,7 @@ public class TypeAssumptionField extends HorizontalLayout implements LocaleChang
minusIcon.setId(MINUS_ICON_ID); minusIcon.setId(MINUS_ICON_ID);
Button deleteButton = new Button(minusIcon, event -> deleteSelf.accept(this)); Button deleteButton = new Button(minusIcon, event -> deleteSelf.accept(this));
deleteButton.setId(ASS_DELETE_BUTTON_ID); deleteButton.setId(ASS_DELETE_BUTTON_ID);
deleteButton.setTabIndex(-1);
add(variableInputField, typeInputField, deleteButton); add(variableInputField, typeInputField, deleteButton);
setId(ASSUMPTIONS_FIELD_ID); setId(ASSUMPTIONS_FIELD_ID);
} }