Skip to content

Commit

Permalink
resolve 12
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidBrot committed Feb 4, 2020
1 parent fbf4859 commit 0ec58f9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions brotkeys.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// (c) Eric Mink aka LucidBrot 2018
// version 2.2.0
// version 2.2.1

// keep in mind that multiple HotkeyManagers only work as long as you don't unregister them via the hotkeys library.
// and multiple managers might autogenerate the same link hints for different content.
Expand Down Expand Up @@ -561,11 +561,7 @@ class HotkeyManager {
element.innerHTML += `<kbd class=\"${swap_class} ${this.LINKHINT_STYLE_CLASS}\">${linkHint}</kbd>`;
} else {
// overlay Mode requires a container
element.innerHTML += `
<span class=\"${this.LINKHINT_OVERLAY_CONTAINER_STYLE_CLASS}\">
<kbd class=\"${swap_class} ${this.LINKHINT_STYLE_CLASS} ${this.LINKHINT_OVERLAY_STYLE_CLASS}\">${linkHint}</kbd>
</span>
`;
element.innerHTML += `<span class=\"${this.LINKHINT_OVERLAY_CONTAINER_STYLE_CLASS}\"><kbd class=\"${swap_class} ${this.LINKHINT_STYLE_CLASS} ${this.LINKHINT_OVERLAY_STYLE_CLASS}\">${linkHint}</kbd></span>`;
}
}

Expand Down

0 comments on commit 0ec58f9

Please sign in to comment.