add Command-G to ext-searchbox fixes #1309

This commit is contained in:
nightwing 2013-03-16 01:50:08 +04:00
commit 243e95f76e

View file

@ -134,6 +134,12 @@ var SearchBox = function(editor, range, showReplaceForm) {
sb.replaceBox.style.display = isReplace ? "" : "none";
sb[isReplace ? "replaceInput" : "searchInput"].focus();
},
"Ctrl-G|Command-G": function(sb) {
sb.findNext();
},
"Ctrl-Shift-G|Command-Shift-G": function(sb) {
sb.findPrev();
},
"esc": function(sb) {
setTimeout(function() { sb.hide();});
},