Only return false if focused

Previously the editor would not gain focus if the underlayer was clicked.
This commit is contained in:
Kevin Sawicki
2013-05-01 17:26:37 -07:00
parent 698f670350
commit 6eb88278ae

View File

@@ -823,7 +823,7 @@ class Editor extends View
@underlayer.on 'mousedown', (e) =>
@renderedLines.trigger(e)
false
false if @isFocused
@overlayer.on 'mousedown', (e) =>
@overlayer.hide()