mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-14 21:54:22 -06:00
Chore: update to Angular 20 (#10273)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { DOCUMENT } from '@angular/common'
|
||||
import { Inject, Injectable } from '@angular/core'
|
||||
import { DOCUMENT, Injectable, inject } from '@angular/core'
|
||||
import { EventManager } from '@angular/platform-browser'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { Observable } from 'rxjs'
|
||||
@@ -15,17 +14,17 @@ export interface ShortcutOptions {
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class HotKeyService {
|
||||
private eventManager = inject(EventManager)
|
||||
private document = inject<Document>(DOCUMENT)
|
||||
private modalService = inject(NgbModal)
|
||||
|
||||
private defaults: Partial<ShortcutOptions> = {
|
||||
element: this.document,
|
||||
}
|
||||
|
||||
private hotkeys: Map<string, string> = new Map()
|
||||
|
||||
constructor(
|
||||
private eventManager: EventManager,
|
||||
@Inject(DOCUMENT) private document: Document,
|
||||
private modalService: NgbModal
|
||||
) {
|
||||
constructor() {
|
||||
this.addShortcut({ keys: 'shift.?' }).subscribe(() => {
|
||||
this.openHelpModal()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user