Skip to content

Commit

Permalink
fix(): replace ExtendedKeyboardEvent with KeyboardEvent to fix issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ks89 committed Oct 3, 2020
1 parent 0b35d2e commit aa8a7ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export class KeyboardService {

/**
* Method to add a lister for ctrl+s/cmd+s keyboard events.
* @param (e: ExtendedKeyboardEvent, combo: string) => any onBind callback function to add shortcuts
* @param (e: KeyboardEvent, combo: string) => any onBind callback function to add shortcuts
*/
add(onBind: (e: ExtendedKeyboardEvent, combo: string) => any) {
add(onBind: (e: KeyboardEvent, combo: string) => any) {
// temporary workaround to fix this issue: https://github.com/Ks89/angular-modal-gallery/issues/142
if (this.config && !this.config.disableSsrWorkaround) {
// To prevent issues with angular-universal on server-side
Expand Down

0 comments on commit aa8a7ed

Please sign in to comment.