diff --git a/src/index.ts b/src/index.ts index 5d50a20..6a9ec6d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -238,9 +238,10 @@ export class KeyboardService { caseSensitive: false, }), ]; - if (this._handleKeyOnce(keyExps, false)) { + const state = this._handleKeyOnce(keyExps, false); + if (state) { e.preventDefault(); - this._reset(); + if (state === 2) this._reset(); } this._timer = window.setTimeout(this._reset, this.options.sequenceTimeout); };