Name: purescript-keys
Owner: SlamData, Inc.
Description: A data type for representing and printing keyboard keys.
Created: 2015-11-26 15:30:12.0
Updated: 2015-11-27 15:32:08.0
Pushed: 2016-02-21 20:12:07.0
Homepage: null
Size: 5
Language: PureScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A data type for representing and printing keyboard keys.
OS X uses the Cmd
key instead of Ctrl
for most keyboard shortcuts. This
package allows you to define keyboard shortcuts once and work with them accross
platforms. It does this by abstracting over Cmd
and Ctrl
with Meta
.
Control.Monad.Eff.Key
exports functions which automatically use the correct
implementation for the detected platform.
An example is availble here.
You can use any Foldable
to represent key collections. We recommend Set
from purescript-sets.