Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

KDKeyboardListener: add static method 'record(callback)' that lets recording keyboard sequences #107

Merged
merged 2 commits into from
Jan 13, 2015
Merged

Conversation

tetsuo
Copy link
Contributor

@tetsuo tetsuo commented Jan 8, 2015

No description provided.

@@ -72,3 +73,8 @@ module.exports = class KDKeyboardListener
@currentListener = new this
@currentListener.listen()
return @currentListener

@record = (fn) ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@record = (fn) -> Mousetrap.record fn.bind fn

is better if you don't require the explicit undefined return.

sinan added a commit that referenced this pull request Jan 13, 2015
KDKeyboardListener: add static method 'record(callback)' that lets recording keyboard sequences
@sinan sinan merged commit 8be29b9 into koding:master Jan 13, 2015
@tetsuo tetsuo deleted the record-keyseqs1 branch April 5, 2015 03:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants