aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-22 17:20:03 +0100
committerJoris Guyonvarch2015-03-22 17:20:03 +0100
commitcf26834c717043685866b47eb95bcd8d1299a78b (patch)
tree1e3f391b777402cc62400e40ede07fde0cf65a0e
parentb3076f37700291221ededbaf996a065b006cf42d (diff)
If no edition is given and the enter key is pressed, exit the edition mode
-rw-r--r--design/design.css1
-rw-r--r--src/Update/Update.elm4
2 files changed, 4 insertions, 1 deletions
diff --git a/design/design.css b/design/design.css
index db19feb..7d9cd39 100644
--- a/design/design.css
+++ b/design/design.css
@@ -119,6 +119,7 @@
.timer > .time {
width: 200px;
+ letter-spacing: 2px;
cursor: text;
position: relative;
border-radius: 0px;
diff --git a/src/Update/Update.elm b/src/Update/Update.elm
index a556e36..2f4d7a4 100644
--- a/src/Update/Update.elm
+++ b/src/Update/Update.elm
@@ -107,7 +107,9 @@ validEdition model =
Just edition ->
if isEmpty edition
then
- model
+ { model
+ | edition <- Nothing
+ }
else
let timerAction =
case edition.kind of