Skip to content

Commit 5a40fc1

Browse files
authored
Merge pull request #135 from benvan/shift-enter-previous-result
Feature: shift-enter shows the previous search result
2 parents e656622 + 6d246d6 commit 5a40fc1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extension/src/json-viewer/highlighter.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ Highlighter.prototype = {
162162
CodeMirror.commands.findNext(cm);
163163
}
164164

165+
extraKeyMap["Shift-Enter"] = function(cm) {
166+
CodeMirror.commands.findPrev(cm);
167+
}
168+
165169
extraKeyMap["Ctrl-V"] = extraKeyMap["Cmd-V"] = function(cm) {};
166170
}
167171

0 commit comments

Comments
 (0)