Skip to content

Commit 09d91d3

Browse files
Escape key now clears results and highlights.
resolves #12
1 parent 7dbc1f5 commit 09d91d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/popup/popup.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ module Popup {
7878
} else {
7979
search(id, tabStates);
8080
}
81+
} else if (event.keyCode == 27) {
82+
Log.info("Esc pressed");
83+
setSearching(id, false, tabStates);
84+
Utils.sendCommand("clear");
8185
}
8286
}
8387

0 commit comments

Comments
 (0)