Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

okonet opened this Issue · 1 comment

2 participants

  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


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
@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
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.