Project

General

Profile

« Previous | Next » 

Revision 60642

[Library | Trunk]: Fs modal: Fix esc key

View differences:

full-screen-modal.component.ts
50 50
    if (typeof document !== "undefined") {
51 51
      document.body.appendChild(this.element);
52 52
      this.subscriptions.push(fromEvent(document, 'keydown').pipe(delay(1)).subscribe((event: KeyboardEvent) => {
53
        this.close();
53
        if(event.keyCode === 27) {
54
          this.close();
55
        }
54 56
      }));
55 57
    }
56 58
  }

Also available in: Unified diff