Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Prevent from calling callbacks from different scopes for the same shortcut #48

Closed
okonet opened this Issue · 1 comment

2 participants

@okonet
  1. Assign same shortcut for 2 different scopes "a" and "b"
  2. Change scope to "b" in the first's shortcut callback

Result: both callbacks gets called

@okonet

Related to #28

@madrobby madrobby closed this issue from a commit
@okonet okonet Defer setting of scope in setScope to prevent potential loop or calli…
…ng callbacks from different scope for the same shortcut. Fixes #28. Fixes #48
5782b14
@madrobby madrobby closed this in 5782b14
@okonet okonet referenced this issue from a commit in okonet/keymaster
@okonet okonet Removed setTimeout from setScope since it's unreliable and breaks tes…
…ts. Instead passing _scope to a callback as argument to ensure it remains the same by the time of execution. Fixes #48
6f4f667
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.