Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Updates to work with merged CodeMirror for sprint 10 #1003

Merged
merged 2 commits into from
Jun 7, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ define(function (require, exports, module) {
/** Returns true if the editor has focus */
Editor.prototype.hasFocus = function () {
// The CodeMirror instance wrapper has a "CodeMirror-focused" class set when focused
return $(this.getRootElement()).hasClass("CodeMirror-focused");
return $(this.getScrollerElement()).hasClass("CodeMirror-focused");
};

/**
Expand Down
4 changes: 2 additions & 2 deletions src/styles/brackets_codemirror_override.less
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@
.CodeMirror pre.CodeMirror-cursor {
visibility: hidden;
}
.CodeMirror.CodeMirror-focused pre.CodeMirror-cursor {
.CodeMirror .CodeMirror-focused pre.CodeMirror-cursor {
visibility: visible;
}

.CodeMirror div.CodeMirror-selected {
background: #d9d9d9;
}
.CodeMirror.CodeMirror-focused div.CodeMirror-selected {
.CodeMirror .CodeMirror-focused div.CodeMirror-selected {
background: #d2dcf8;
}
.CodeMirror .CodeMirror-gutter {
Expand Down
2 changes: 1 addition & 1 deletion src/thirdparty/CodeMirror2