Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS to TS: src/simulator/src/hotkey_binder/model/shortcuts.plugin.ts #425

Merged
merged 16 commits into from
Feb 7, 2025
30 changes: 30 additions & 0 deletions src/simulator/src/hotkey_binder/model/modelInterfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//This file holds the interfaces required for src/simulator/src/hotkey_binder/model
//to be continued for storing interfaces of the parent folder

export interface ShortcutOptions {
type?: string
propagate?: boolean
disable_in_input?: boolean
target?: Document | string
keycode?: number | false
}

export interface ShortcutBinding {
callback: EventListener
target: Document | HTMLElement
event: string
}

export interface ModifierState {
wanted: boolean
pressed: boolean
}

export interface Storage {
set<T>(key: string, obj: T): void;
get<T>(key: string): T | null;
}

export interface KeyMap {
[key: string]: string
}
250 changes: 0 additions & 250 deletions src/simulator/src/hotkey_binder/model/shortcuts.plugin.js

This file was deleted.

Loading
Loading