2module Graphics.Input where
5import Native.Graphics.Input as N
9buttons : a -> { button : a -> String -> Element, events : Signal a }
11button : String -> (Element, Signal ())
13 let pool = N.buttons ()
14 in (pool.button () txt, pool.events)
16customButtons : a -> { button : a -> Element -> Element -> Element -> Element,
19customButton : Element -> Element -> Element -> (Element, Signal ())
20customButton up hover down =
21 let pool = N.customButtons ()
22 in (pool.button () up hover down, pool.events)
24checkBoxes : a -> { box : (Bool -> a) -> Bool -> Element, events : Signal a }
26checkBox : Bool -> (Signal Element, Signal Bool)
28 let cbs = N.checkBoxes b
29 in (lift (cbs.box id) cbs.events, cbs.events)
37textFields : a -> { field : (TextState -> a) -> String -> TextState -> Element,
40text : String -> TextState -> (Signal Element, Signal TextState)
41text placeHolder textState =
42 let tfs = N.textFields textState
43 in (lift (tfs.field id placeHolder) tfs.events, tfs.events)
45password : String -> TextState -> (Signal Element, Signal TextState)
46password placeHolder textState =
47 let tfs = N.passwords textState
48 in (lift (tfs.field id placeHolder) tfs.events, tfs.events)
50email : String -> TextState -> (Signal Element, Signal TextState)
51email placeHolder textState =
52 let tfs = N.emails textState
53 in (lift (tfs.field id placeHolder) tfs.events, tfs.events)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list