@ryusei/code
Version:
<div align="center"> <a href="https://code.ryuseijs.com"> <img alt="RyuseiCode" src="https://code.ryuseijs.com/images/svg/logo.svg" width="70"> </a>
22 lines (18 loc) • 417 B
text/typescript
import { KeyMatcher } from '@ryusei/code';
/**
* The map for kay bindings (`[ key, ctrl, shift, alt ]`).
*
* @since 0.1.0
*/
export const KEYMAP: Record<string, KeyMatcher | KeyMatcher[] | null | false> = {
selectAll: [ 'A', true ],
};
/**
* The collection of modifier keys.
*
* @since 0.1.0
*/
export const MODIFIER_KEYS = {
default: [ 'Ctrl', 'Shift', 'Alt' ],
mac : [ '⌘', '⇧', '⌥' ],
};