mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 09:01:36 +00:00
19 lines
456 B
CoffeeScript
19 lines
456 B
CoffeeScript
|
define [
|
||
|
"base"
|
||
|
"ace/ace"
|
||
|
], (App) ->
|
||
|
App.controller "HotkeysController", ($scope, $modal) ->
|
||
|
$scope.openHotkeysModal = ->
|
||
|
$modal.open {
|
||
|
templateUrl: "hotkeysModalTemplate"
|
||
|
controller: "HotkeysModalController"
|
||
|
}
|
||
|
|
||
|
App.controller "HotkeysModalController", ($scope, $modalInstance)->
|
||
|
if ace.require("ace/lib/useragent").isMac
|
||
|
$scope.ctrl = "Cmd"
|
||
|
else
|
||
|
$scope.ctrl = "Ctrl"
|
||
|
|
||
|
$scope.cancel = () ->
|
||
|
$modalInstance.dismiss()
|