Added a strict option: If strict is enabled, setting an option like shift to false now requires the key not to be pressed instead of simply being ignored.
Additional information
I'm not sure if this is the best solution. While it keeps backwards compatibility and doesn't break any behavior, it has the downside of not covering all situations that would be possible with e.g. an enum.
With this implementation, either all or no settings are strict. This means it is not possible to require shift not to be pressed whilst not caring if alt is pressed or not.
General
strict
option: Ifstrict
is enabled, setting an option likeshift
tofalse
now requires the key not to be pressed instead of simply being ignored.Additional information
I'm not sure if this is the best solution. While it keeps backwards compatibility and doesn't break any behavior, it has the downside of not covering all situations that would be possible with e.g. an enum.
With this implementation, either all or no settings are strict. This means it is not possible to require
shift
not to be pressed whilst not caring ifalt
is pressed or not.Addressing #101