Method opt.scope.key
Overload
Creates temporary scope for opt.key options. See example.
public static UsingEndAction key(bool inherit = true)
Parameters
inherit (bool)
If |
Returns
Examples
print.it(opt.key.KeySpeed);
using(opt.scope.key()) {
opt.key.KeySpeed = 5;
print.it(opt.key.KeySpeed);
} //here restored automatically
print.it(opt.key.KeySpeed);