diff options
| author | RblSb <msrblsb@gmail.com> | 2025-04-09 23:36:52 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-04-09 23:36:52 +0300 |
| commit | 7cc0b485f2eed746ff638e14e137eabaebaf9312 (patch) | |
| tree | e945ebe3215a813aaff36f124598cced1a850f9c /src/client/InputWithHistory.hx | |
| parent | 71160f8c35da6d40bad52cfecd7152c539dd85c6 (diff) | |
Trim spaces in message
Diffstat (limited to 'src/client/InputWithHistory.hx')
| -rw-r--r-- | src/client/InputWithHistory.hx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/InputWithHistory.hx b/src/client/InputWithHistory.hx index e7dfe83..e41ec16 100644 --- a/src/client/InputWithHistory.hx +++ b/src/client/InputWithHistory.hx @@ -33,7 +33,7 @@ class InputWithHistory { final key:KeyCode = cast e.keyCode; switch (key) { case Return: - final value = element.value; + final value = element.value.trim(); if (value.length == 0) return; final isAdd = onEnter(value); if (isAdd) pushIfNotLast(history, value); |
