int KeyboardRepeat::primitive_start(int delayUntilRepeat, int keyRepeat) { keyRepeat_ = keyRepeat; fire_timer_.setTimeoutMS(delayUntilRepeat); return succID(); }
void KeyboardRepeat::cancel(void) { fire_timer_.cancelTimeout(); queue_.clear(); // Increase id_ at cancel for DependingPressingPeriodKeyToKey to detect keyboardRepeat canceling. succID(); }