slamdata/purescript-keys

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

purescript-keys

A data type for representing and printing keyboard keys.

Cross platform

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.

Example

An example is availble here.

Combinations

You can use any Foldable to represent key collections. We recommend Set from purescript-sets.

Module documentation

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.