Skip to content

Commit 7dbc1f5

Browse files
Enter now moves to next search result. Shift+Enter moves to prev.
resolves #11
1 parent 447f46f commit 7dbc1f5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/popup/popup.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ module Popup {
6969
var queryInputKeyDown = function(event) {
7070
if (event.keyCode == 13) {
7171
Log.info("Enter pressed");
72-
search(id, tabStates);
72+
if (tabStates.isSearching(id)) {
73+
if (event.shiftKey) {
74+
prevButtonClick();
75+
} else {
76+
nextButtonClick();
77+
}
78+
} else {
79+
search(id, tabStates);
80+
}
7381
}
7482
}
7583

0 commit comments

Comments
 (0)