Skip to content
Snippets Groups Projects
Commit 26d8c710 authored by Alasdair Smith's avatar Alasdair Smith Committed by Marijn Haverbeke
Browse files

[search addon] Add findPersistentNext/Prev commands to execute in search dialog

parent e452ba29
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,8 @@
var keyName = CodeMirror.keyName(event)
var cmd = CodeMirror.keyMap[cm.getOption("keyMap")][keyName]
if (!cmd) cmd = cm.getOption('extraKeys')[keyName]
if (cmd == "findNext" || cmd == "findPrev") {
if (cmd == "findNext" || cmd == "findPrev" ||
cmd == "findPersistentNext" || cmd == "findPersistentPrev") {
CodeMirror.e_stop(event);
startSearch(cm, getSearchState(cm), query);
cm.execCommand(cmd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment