import { } from '../../common/global' ; import { _Hotkeys } from './Hotkeys' ; import SETTINGS from "../../common/Settings" ; export let hotkeys = undefined ; Hooks . once ( 'init' , function ( ) { if ( window . Hotkeys ) { hotkeys = window . Hotkeys as typeof Hotkeys ; return ; } SETTINGS . init ( 'lib-df-hotkeys' ) ; Object . defineProperty ( _Hotkeys , 'isShim' , { value : true , writable : false , configurable : false } ) ; hotkeys = _Hotkeys ; hotkeys . _init ( ) ; } ) ;