Merge pull request #2213 from dyross/dyr-hide-cursor-nicely

Hide the cursor with cursor-hidden class rather than element.style
This commit is contained in:
Nathan Sobo
2014-05-16 08:36:27 -06:00
2 changed files with 9 additions and 1 deletions

View File

@@ -78,7 +78,11 @@ class CursorView extends View
setVisible: (visible) ->
unless @visible is visible
@visible = visible
@toggle(@visible)
hiddenCursor = 'hidden-cursor'
if visible
@removeClass hiddenCursor
else
@addClass hiddenCursor
stopBlinking: ->
@constructor.stopBlinking(this) if @blinking

View File

@@ -226,6 +226,10 @@
visibility: visible;
}
.cursor.hidden-cursor {
display: none;
}
.editor .hidden-input {
padding: 0;
border: 0;