Chromevox theme now an extension, added demo file, added findSearchBox event.

This commit is contained in:
Peter Xiao 2013-08-12 15:58:09 -07:00
commit 38b42d20d3
4 changed files with 809 additions and 786 deletions

File diff suppressed because it is too large Load diff

View file

@ -214,7 +214,9 @@ var SearchBox = function(editor, range, showReplaceForm) {
caseSensitive: this.caseSensitiveOption.checked,
wholeWord: this.wholeWordOption.checked
});
dom.setCssClass(this.searchBox, "ace_nomatch", !range && this.searchInput.value);
var noMatch = !range && this.searchInput.value;
dom.setCssClass(this.searchBox, "ace_nomatch", noMatch);
this.editor._emit("findSearchBox", { match: !noMatch });
this.highlight();
};
this.findNext = function() {

View file

@ -16,8 +16,8 @@ module.exports.themes = [
"kr_theme",
"merbivore",
"merbivore_soft",
"monokai",
"mono_industrial",
"monokai",
"pastel_on_dark",
"solarized_dark",
"solarized_light",