Merge pull request #10 from gedankenexperimenter/f/smarter-lock-start-time

Set lock_start_time to last_key_time when locking the keyboard
pull/389/head
Gergely Nagy 7 years ago committed by GitHub
commit d8f37dcb2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,7 +95,7 @@ Key TypingBreaks::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t k
// Is the session longer than lock_time_out?
if (millis() - session_start_time_ >= lock_time_out) {
// Yeah, it is.
lock_start_time_ = millis();
lock_start_time_ = last_key_time_;
TypingBreak(true);
return Key_NoKey;
}

Loading…
Cancel
Save