@abp/ng.theme.shared 7.1.0-rc.3 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -738,7 +738,7 @@ class ModalComponent {
|
|
|
738
738
|
listen() {
|
|
739
739
|
if (this.modalWindowRef) {
|
|
740
740
|
fromEvent(this.modalWindowRef, 'keyup')
|
|
741
|
-
.pipe(takeUntil(this.destroy$), debounceTime(150), filter((key) => key && key.key === 'Escape'))
|
|
741
|
+
.pipe(takeUntil(this.destroy$), debounceTime(150), filter((key) => key && key.key === 'Escape' && this.options.keyboard))
|
|
742
742
|
.subscribe(() => this.close());
|
|
743
743
|
}
|
|
744
744
|
fromEvent(window, 'beforeunload')
|