From 243e95f76e02ce15b37f4ae3cbafb1439a77e17a Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 16 Mar 2013 01:50:08 +0400 Subject: [PATCH] add Command-G to ext-searchbox fixes #1309 --- lib/ace/ext/searchbox.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ace/ext/searchbox.js b/lib/ace/ext/searchbox.js index 64e3f6de..e2d97366 100644 --- a/lib/ace/ext/searchbox.js +++ b/lib/ace/ext/searchbox.js @@ -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();}); },