You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just want to be able to set scope back to previous one without setting a variable, and without knowing what the previous scope was. In my current application, I have many components where when a specific component is mounted I want it to use its scope and when that component dismounts -> back to previous scope [my component doesn't need to know the previous scope].
The text was updated successfully, but these errors were encountered:
Well, your app will know which component is mounted right? So just based on that, you can use the provided example:
// define shortcuts with a scopekey('o, enter','issues',function(){/* do something */});key('o, enter','files',function(){/* do something else */});// set the scope (only 'all' and 'issues' shortcuts will be honored)key.setScope('issues');// default scope is 'all'// remove all events that are set in 'issues' scopekey.deleteScope('issues');
Just want to be able to set scope back to previous one without setting a variable, and without knowing what the previous scope was. In my current application, I have many components where when a specific component is mounted I want it to use its scope and when that component dismounts -> back to previous scope [my component doesn't need to know the previous scope].
The text was updated successfully, but these errors were encountered: