# k-sequence **Repository Path**: mirrors_TooTallNate/k-sequence ## Basic Information - **Project Name**: k-sequence - **Description**: keyboard sequences - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # k-sequence keyboard sequences. ## Installation Install with [component(1)](http://component.io): $ component install yields/k-sequence ## API ### seq(keys[, ms], fn) Create a function that will be invoked only if the given `keys` sequence is matched, `ms` can be omitted and defaulted to `500ms`. if `ms` is `500ms` the keys must be pressed within `500ms` for the callback to be called. ```js var a = seq('a b c', function(e){}); var b = seq('a * b * c', function(e){}); el.addEventListener('keydown', a); el.addEventListener('keydown', b); press('a b c'); // => a is called press('a a b b c'); // => b is called ``` ## Tests ```bash $ make test ``` ## License MIT