Module

FRP.Event.Keyboard

#Keyboard

newtype Keyboard

A handle for creating events from the keyboard.

#getKeyboard

getKeyboard :: Effect Keyboard

Get a handle for working with the keyboard.

#disposeKeyboard

#down

down :: Event String

Create an Event which fires when a key is pressed

#up

up :: Event String

Create an Event which fires when a key is released

#withKeys

withKeys :: forall a. Keyboard -> Event a -> Event { value :: a, keys :: Set String }

Create an event which also returns the currently pressed keys.

Modules