mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Relayout entries when commenting.
This commit is contained in:
parent
914e50f3f6
commit
58ad62c413
2 changed files with 5 additions and 4 deletions
|
@ -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) ->
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue