mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 11:38:24 +00:00
fix(spells): <ESC> to cancel spell-casting
This commit is contained in:
parent
7a479098dc
commit
a1df41ad81
2 changed files with 5 additions and 6 deletions
|
|
@ -180,10 +180,9 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
|||
$rootScope.applyingAction = false;
|
||||
}
|
||||
|
||||
// $rootScope.castCancel = function(){
|
||||
// debugger
|
||||
// $rootScope.applyingAction = false;
|
||||
// $scope.spell = null;
|
||||
// }
|
||||
$rootScope.castCancel = function(){
|
||||
$rootScope.applyingAction = false;
|
||||
$scope.spell = null;
|
||||
}
|
||||
}
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
doctype 5
|
||||
//html(ng-app="habitrpg", ng-controller="RootCtrl", ng-class='{"applying-action":applyingAction}', ui-keypress="{27:'castCancel()'}")
|
||||
html(ng-app="habitrpg", ng-controller="RootCtrl", ng-class='{"applying-action":applyingAction}', ui-keypress="{27:'castCancel()'}")
|
||||
html(ng-app="habitrpg", ng-controller="RootCtrl", ng-class='{"applying-action":applyingAction}', ui-keyup="{27:'castCancel()'}")
|
||||
head
|
||||
title=env.t('titleIndex')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue