From 2613aeeae0f4de44842ff0e796603d0316a61a14 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Wed, 18 Mar 2015 00:32:17 +0100 Subject: Can edit the time, unfortunately the enter key is overriden so the '+' key of the numpad is used instead --- src/Main.elm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Main.elm') diff --git a/src/Main.elm b/src/Main.elm index c2a327b..42bcbc4 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -6,8 +6,9 @@ import Signal import Html (Html) import Time (..) import Mouse -import Debug import Json.Encode (Value) +import Keyboard +import Char import Model.Model (..) import Model.Position (..) @@ -26,6 +27,7 @@ input = [ Signal.subscribe updates , Signal.map DeltaTime (fps 30) , Signal.map (\_ -> ReadOnly) clickAway + , Signal.map KeyPressed Keyboard.lastPressed ] port clickPosition : Signal Value -- cgit v1.2.3