Skip to content

Commit

Permalink
bugfix/help-view-scrollable generate dist
Browse files Browse the repository at this point in the history
  • Loading branch information
ylerjen committed Jan 6, 2020
1 parent 88f84cc commit 061175f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
14 changes: 9 additions & 5 deletions build/hotkeys.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
/*!
* angular-hotkeys v1.7.0
* angular-hotkeys v1.7.1
* https://chieffancypants.github.io/angular-hotkeys
* Copyright (c) 2016 Wes Cruver
* Copyright (c) 2020 Wes Cruver, (adapted by Yann Lerjen)
* License: MIT
*/
body.cfp-hotkeys-visible {
overflow: hidden;
}

.cfp-hotkeys-container {
display: table !important;
display: flex !important;
justify-content: center;
overflow-y: auto;
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
color: #333;
Expand Down
8 changes: 5 additions & 3 deletions build/hotkeys.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* angular-hotkeys v1.7.0
* angular-hotkeys v1.7.1
* https://chieffancypants.github.io/angular-hotkeys
* Copyright (c) 2016 Wes Cruver
* Copyright (c) 2020 Wes Cruver, (adapted by Yann Lerjen)
* License: MIT
*/
/*
Expand Down Expand Up @@ -304,6 +304,8 @@
function toggleCheatSheet() {
scope.helpVisible = !scope.helpVisible;

angular.element(document.body).toggleClass('cfp-hotkeys-visible', scope.helpVisible);

// Bind to esc to remove the cheat sheet. Ideally, this would be done
// as a directive in the template, but that would create a nasty
// circular dependency issue that I don't feel like sorting out.
Expand Down Expand Up @@ -1050,7 +1052,7 @@
}

function _belongsTo(element, ancestor) {
if (element === document) {
if (element === null || element === document) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion build/hotkeys.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 061175f

Please sign in to comment.