Fix isActive to be less strict

We want to treat the one-shot keys as active even when they were interrupted -
as long as their state is not cleared. This is because when using isActive from
another plugin, or macro, that is usually in response to a key press that
already sets up `shouldCancel` - yet, the modifier is technically active still!

So `isActive` does not check the to-be-cancelled flag anymore. This makes the
Escape-OneShot plugin much more reliable as a consequence.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent 7d024cabc0
commit e1cee252d5

@ -255,7 +255,7 @@ namespace Akela {
bool bool
OneShot::isActive (void) { OneShot::isActive (void) {
return (State && !hasTimedOut () && !shouldCancel); return (State && !hasTimedOut ());
} }
bool bool

Loading…
Cancel
Save