aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/InputWithHistory.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/InputWithHistory.hx')
-rw-r--r--src/client/InputWithHistory.hx2
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);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage