2module Graphics.Input where
4import Native.Graphics.Input as N
6buttons : a -> { button : a -> String -> Element, events : Signal a }
8button : String -> (Element, Signal ())
10 let pool = N.buttons ()
11 in (pool.button () txt, pool.events)
13customButtons : a -> { button : a -> Element -> Element -> Element -> Element,
16customButton : Element -> Element -> Element -> (Element, Signal ())
17customButton up hover down =
18 let pool = N.customButtons ()
19 in (pool.button () up hover down, pool.events)
21checkBoxes : a -> { box : (Bool -> a) -> Bool -> Element, events : Signal a }
23checkBox : Bool -> (Signal Element, Signal Bool)
25 let cbs = N.checkBoxes b
26 in (lift (cbs.box id) cbs.events, cbs.events)
34textFields : a -> { field : (TextState -> a) -> String -> TextState -> Element,
37textField : String -> TextState -> (Signal Element, Signal TextState)
38textField placeHolder textState =
39 let tfs = N.textFields textState
40 in (lift (tfs.field id placeHolder) tfs.events, tfs.events)
42password : String -> TextState -> (Signal Element, Signal TextState)
43email : String -> TextState -> (Signal Element, Signal TextState)
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