Skip to content

Commit 5bce983

Browse files
committed
Modal keyboard debug
1 parent ff05126 commit 5bce983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UI/ModalOverlay.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ModalOverlay extends HTMLElement {
2020
// inside of a Modal, we'd want the AnchoredOverlay to be dismissed, not
2121
// the modal (unless no AnchoredOverlay is open)
2222
this.onKeydown = (ev) => {
23-
// If the element isn't visible, there's no point in triggering the escape event.
23+
// If the element isn't visible, there's no point in triggering the keyboard event.
2424
const style = window.getComputedStyle(this);
2525
if (style.display === "none" || this.offsetParent === null) {
2626
return;
@@ -33,7 +33,7 @@ class ModalOverlay extends HTMLElement {
3333
this.dispatchEvent(new CustomEvent("escape"));
3434
}
3535

36-
console.log(this);
36+
debugger;
3737
console.log('---');
3838
console.log(this.events);
3939

0 commit comments

Comments
 (0)