|
|
@@ -1,8 +1,9 @@
|
|
|
define [
|
|
|
"base"
|
|
|
+ "ace/ace"
|
|
|
"libs/latex-log-parser"
|
|
|
"libs/bib-log-parser"
|
|
|
-], (App, LogParser, BibLogParser) ->
|
|
|
+], (App, Ace, LogParser, BibLogParser) ->
|
|
|
App.controller "PdfController", ($scope, $http, ide, $modal, synctex, event_tracking, localStorage) ->
|
|
|
|
|
|
# enable per-user containers if querystring includes isolated=true
|
|
|
@@ -13,6 +14,11 @@ define [
|
|
|
$scope.pdf.view = if $scope?.pdf?.url then 'pdf' else 'uncompiled'
|
|
|
$scope.shouldShowLogs = false
|
|
|
|
|
|
+ if ace.require("ace/lib/useragent").isMac
|
|
|
+ $scope.modifierKey = "Cmd"
|
|
|
+ else
|
|
|
+ $scope.modifierKey = "Ctrl"
|
|
|
+
|
|
|
$scope.$on "project:joined", () ->
|
|
|
return if !autoCompile
|
|
|
autoCompile = false
|