How to use the angular2-hotkeys.HotkeyModule.forRoot function in angular2-hotkeys

To help you get started, we’ve selected a few angular2-hotkeys examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipse / winery / org.eclipse.winery.frontends / app / topologymodeler / src / app / winery.module.ts View on Github external
RouterModule.forRoot([{ path: '**', redirectTo: '', pathMatch: 'full' }]),
        BrowserAnimationsModule,
        NgReduxModule,
        BsDropdownModule.forRoot(),
        ToastrModule.forRoot({
            timeOut: 3000,
            preventDuplicates: true,
            easing: 'ease-in-out',
            enableHtml: true,
            progressBar: true,
            extendedTimeOut: 3000,
            easeTime: 450
        }),
        AccordionModule.forRoot(),
        TopologyRendererModule.forRoot(),
        HotkeyModule.forRoot({ cheatSheetHotkey: 'mod+space' }),
        WineryModalModule,
        TypeaheadModule.forRoot(),
        PopoverModule.forRoot(),
        PropertiesModule,
        WineryFeatureToggleModule
    ],
    providers: [
        // { provide: ToastOptions, useClass: WineryCustomOption },
        JsPlumbService,
        WineryActions,
        TopologyRendererActions,
        LoadedService,
        AppReadyEventService,
        BackendService,
        ExistsService,
        EntitiesModalService,
github alyvix / alyvix / alyvix-ui / src / app / ax-designer / designer.module.ts View on Github external
RComponent,
    TComponent,
    InteractionComponent,
    BoxOptionsComponent,
    TreeNodeComponent,
    SelectTypeComponent,
    ScreenComponent,
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    FormsModule,
    DragDropModule,
    AngularResizedEventModule,
    ContextMenuModule.forRoot(),
    HotkeyModule.forRoot({cheatSheetHotkey: "ctrl+h"}),
    CustomFormsModule,
    ReactiveFormsModule,
    AutocompleteLibModule,
    BrowserAnimationsModule, // required animations module
    ToastrModule.forRoot()
  ],
  providers: [
    {provide: 'GlobalRefDesigner', useClass: environment.globalTypeDesigner},
    {provide: 'subSystem', useValue: 'designer'}
  ],
  bootstrap: [DesignerComponent]
})
export class DesignerModule { }
github cormacrelf / angular-skyhook / packages / examples / src / app / app.module.ts View on Github external
declarations: [AppComponent, TestComponent],
    imports: [
        BrowserModule,
        UtilityModule,
        RouterModule.forRoot(routes, {
            preloadingStrategy: PreloadAllModules,
            useHash: true
        }),
        StoreRootModule,
        SkyhookDndModule.forRoot({ backendFactory: customMultiBackend }),
        // SkyhookDndModule.forRoot({ backend: TouchBackend }),
        // SkyhookDndModule.forRoot({ backend: MouseBackend }),
        StoreModule.forRoot(reducers, { metaReducers }),
        // !environment.production ? StoreDevtoolsModule.instrument() : [],
        EffectsModule.forRoot([AppEffects]),
        HotkeyModule.forRoot()
    ],
    bootstrap: [AppComponent]
})
export class AppModule {}
github Gisto / Gisto / src / app / app.module.ts View on Github external
GistoCodeEditorComponent
  ],
  imports: [
    RouterModule.forRoot(
      appRoutes,
        { enableTracing: false } // <-- debugging purposes only
    ),
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,

    MobxAngularModule,
    // CovalentCodeEditorModule,
    AceEditorModule,
    MarkdownModule.forRoot(),
    HotkeyModule.forRoot(),
    NgxElectronModule
  ],
  providers: [
    SettingsStore,
    NotificationsStore,
    GithubAuthorizationService,
    AuthGuard
  ],
  bootstrap: [AppComponent],
  schemas: [ NO_ERRORS_SCHEMA ]
})
export class AppModule { }
github dotCMS / core-web / src / app / app.module.ts View on Github external
bootstrap: [AppComponent],
    declarations: [AppComponent, ...COMPONENTS],
    imports: [
        ...CUSTOM_MODULES,
        ...NGFACES_MODULES,
        BrowserAnimationsModule,
        BrowserModule,
        FormsModule,
        HttpModule,
        JsonpModule,
        ReactiveFormsModule,
        SharedModule.forRoot(),
        AppRoutingModule,
        MdInputTextModule,
        DotDirectivesModule,
        HotkeyModule.forRoot()
    ],
    providers: [ENV_PROVIDERS]
})
export class AppModule {}
github Mindmapp / mindmapp / src / app / root.module.ts View on Github external
}

@NgModule({
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        RootRoutingModule,
        HttpClientModule,
        TranslateModule.forRoot({
            loader: {
                provide: TranslateLoader,
                useFactory: (createTranslateLoader),
                deps: [HttpClient]
            }
        }),
        HotkeyModule.forRoot(),
        SharedModule,
        ServiceWorkerModule.register('ngsw-worker.js', {enabled: environment.production})
    ],
    declarations: [
        RootComponent
    ],
    bootstrap: [RootComponent]
})
export class RootModule {
}
github locdb / locdb-frend / src / app / todo-detail / todo-detail.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [ AccordionModule.forRoot(), HotkeyModule.forRoot(), ReactiveFormsModule, HttpModule],
      declarations: [ TodoDetailComponent, EntryListComponent, EntryFormComponent, DisplayComponent ],
      providers: [LocdbService, CredentialsService, HotkeysService, LoggingService]
    })
    .compileComponents();
  }));
github mvdicarlo / postybirb / src / app / app.module.ts View on Github external
@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    TranslateModule.forRoot({
      loader: {
        provide: TranslateLoader,
        useFactory: HttpLoaderFactory,
        deps: [HttpClient]
      }
    }),
    HotkeyModule.forRoot(),
    LoginModule,
    PostybirbModule,
    UtilsModule,
    TemplatesModule,
    DatabaseModule,
    MiscellaneousModule,
    WebsitesModule,
    MatButtonModule,
    MatDialogModule,
    MatIconModule,
    MatInputModule,
    MatSelectModule,
    MatSidenavModule,
    MatToolbarModule,
    MatTooltipModule,
    SnotifyModule
github dkocich / osm-pt-ngx-leaflet / public_src / app.module.ts View on Github external
useFactory: HttpLoaderFactory,
        deps: [HttpClient],
      },
    }),
    TypeaheadModule.forRoot(),
    RouterModule.forRoot(ROUTES),
    StoreModule,
    ToastrModule.forRoot({
      timeOut: 2000,
      positionClass: 'toast-bottom-right',
      maxOpened: 1,
    }),
    SortableModule.forRoot(),
    TabsModule.forRoot(),
    ReactiveFormsModule,
    HotkeyModule.forRoot(),
  ],
  providers: [
    ...conditional_providers,

    AuthService,
    ConfService,
    DbService,
    EditService,
    ErrorHighlightService,
    GeocodeService,
    MapService,
    OverpassService,
    ProcessService,
    StorageService,
    WarnService,
    RouteWizardService,
github search-future / miyou.tv / miyoutv / src / app / app.module.ts View on Github external
garaponDevId,
  garaponSiteUrl,
  playerOptions,
} from './app.constants';
import { CoreModule } from './core/core.module';
import { SharedModule } from './shared/shared.module';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';

defineLocale('ja', jaLocale);

@NgModule({
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    HotkeyModule.forRoot({
      cheatSheetDescription: 'ショートカット一覧を表示/非表示',
    }),
    LoadingBarRouterModule,
    AppRoutingModule,
    CoreModule,
    SharedModule,
  ],
  declarations: [AppComponent],
  bootstrap: [AppComponent],
  providers: [
    { provide: 'categoryTable', useValue: categoryTable },
    { provide: 'commentTokenUrl', useValue: commentTokenUrl },
    { provide: 'commentUrl', useValue: commentUrl },
    { provide: 'garaponAuthUrl', useValue: garaponAuthUrl },
    { provide: 'garaponAuthUrlV4', useValue: garaponAuthUrlV4 },
    { provide: 'garaponDevId', useValue: garaponDevId },

angular2-hotkeys

Angular 16 and Ivy Compatible. Older versions might work but isn't officially tested.

MIT
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis