From cf26834c717043685866b47eb95bcd8d1299a78b Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Sun, 22 Mar 2015 17:20:03 +0100 Subject: If no edition is given and the enter key is pressed, exit the edition mode --- src/Update/Update.elm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3