diff --git a/src/Kaleidoscope/OneShot.h b/src/Kaleidoscope/OneShot.h index 35ed6862..ba60240a 100644 --- a/src/Kaleidoscope/OneShot.h +++ b/src/Kaleidoscope/OneShot.h @@ -36,6 +36,10 @@ class OneShot : public KaleidoscopePlugin { return (key.raw >= kaleidoscope::ranges::OS_FIRST && key.raw <= kaleidoscope::ranges::OS_LAST); } static bool isActive(void); + static bool isActive(Key key) { + uint8_t idx = key.raw - ranges::OS_FIRST; + return bitRead(state_.all, idx); //&& !hasTimedOut(); + } static void cancel(bool with_stickies); static void cancel(void) { cancel(false);