2014-07-22 09:38:32 -04:00
|
|
|
define [
|
|
|
|
"base"
|
|
|
|
"ace/ace"
|
|
|
|
], (App) ->
|
2016-07-05 10:16:55 -04:00
|
|
|
App.controller "HotkeysController", ($scope, $modal, event_tracking) ->
|
2014-07-22 09:38:32 -04:00
|
|
|
$scope.openHotkeysModal = ->
|
2016-07-06 07:32:33 -04:00
|
|
|
event_tracking.sendCountly "ide-open-hotkeys-modal"
|
2016-07-05 10:16:55 -04:00
|
|
|
|
2014-07-22 09:38:32 -04:00
|
|
|
$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()
|