An interface to granularly block mouse input or certain keys.
scope
method solves is the following:
Imagine you have two windows that have opt-in interactivity. If you use the advanced API mentioned
below to try and handle the blocking yourself:
scope
solves this by globally registering each scope, and not removing a given block until all
scopes have removed it. This can of course be implemented on your own if you desire different
functionality.
scope
helper in most
cases. Internally, scope
wraps these methods to provide the above behavior.