Relayout entries when commenting.
This commit is contained in:
@@ -180,9 +180,7 @@ define [
|
||||
name: "add-new-comment",
|
||||
bindKey: win: "Ctrl-Shift-C", mac: "Command-Shift-C"
|
||||
exec: (editor) =>
|
||||
selection = editor.getSelection()
|
||||
if !selection.isEmpty()
|
||||
callback()
|
||||
callback()
|
||||
readOnly: true
|
||||
|
||||
scope.$watch "onCtrlShiftA", (callback) ->
|
||||
|
||||
+4
-1
@@ -380,9 +380,12 @@ define [
|
||||
$scope.toggleReviewPanel()
|
||||
|
||||
$scope.addNewCommentFromKbdShortcut = () ->
|
||||
$scope.$broadcast "comment:start_adding"
|
||||
$scope.$broadcast "comment:select_line"
|
||||
if !$scope.ui.reviewPanelOpen
|
||||
$scope.toggleReviewPanel()
|
||||
$timeout () ->
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
$scope.$broadcast "comment:start_adding"
|
||||
|
||||
$scope.startNewComment = () ->
|
||||
$scope.$broadcast "comment:select_line"
|
||||
|
||||
Reference in New Issue
Block a user