fix checkstyle

This commit is contained in:
ucrhh 2021-02-11 14:56:00 +01:00
parent cfc25ed81f
commit 8446bc5a04

View File

@ -57,7 +57,8 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver {
inputField = new TextField();
inputField.setId(INPUT_FIELD_ID);
inputField.setClearButtonVisible(true);
inputField.setMaxLength(MAX_INPUT_LENGTH); // TODO: perhaps remove the error message? more than 1000 can't be entered now
inputField.setMaxLength(MAX_INPUT_LENGTH);
// TODO: perhaps remove the error message? more than 1000 can't be entered now
// attach a listener that replaces \ with λ
// JavaScript is used because Vaadin does not have APIs for selectionStart/selectionEnd
// and this will be much faster than a bunch of network round trips per character entered!