Skip to content

Commit

Permalink
<C-u> to clear watch mode pattern prompt jestjs#11296 jestjs#11345
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur1846 committed Apr 27, 2021
1 parent 184d795 commit 7b999c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/jest-watcher/src/lib/Prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ export default class Prompt {
this._onSuccess(this._selection || this._value);
this.abort();
break;
case KEYS.ESCAPE:
this._entering = false;
this._onCancel(this._value);
this.abort();
break;
case KEYS.CONTROL_U:
this._value = "";
this._offset = -1;
this._selection = null;
this._onChange();
break;
case KEYS.ESCAPE:
this._entering = false;
this._onCancel(this._value);
this.abort();
break;
case KEYS.ARROW_DOWN:
this._offset = Math.min(this._offset + 1, this._promptLength - 1);
this._onChange();
Expand Down

0 comments on commit 7b999c8

Please sign in to comment.