the editable site (validation-lab)
This commit is contained in:
commit
3ac81d5a52
13454 files changed
+2227005
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
import { TerraDrawKeyboardEvent } from "../common";
|
||||
type UndoRedoKeyboardShortcut = {
|
||||
key: KeyboardEvent["key"];
|
||||
heldKeys: KeyboardEvent["key"][];
|
||||
};
|
||||
export interface TerraDrawUndoRedoKeyboardShortcutsInterface {
|
||||
isUndoKeyboardShortcut(event: TerraDrawKeyboardEvent): boolean;
|
||||
isRedoKeyboardShortcut(event: TerraDrawKeyboardEvent): boolean;
|
||||
}
|
||||
export declare const matchesShortcut: (event: TerraDrawKeyboardEvent, shortcut: UndoRedoKeyboardShortcut) => boolean;
|
||||
export declare class TerraDrawUndoRedoKeyboardShortcuts implements TerraDrawUndoRedoKeyboardShortcutsInterface {
|
||||
private undoKeyboardShortcuts;
|
||||
private redoKeyboardShortcuts;
|
||||
constructor(options?: {
|
||||
undo?: UndoRedoKeyboardShortcut[];
|
||||
redo?: UndoRedoKeyboardShortcut[];
|
||||
});
|
||||
isUndoKeyboardShortcut(event: TerraDrawKeyboardEvent): boolean;
|
||||
isRedoKeyboardShortcut(event: TerraDrawKeyboardEvent): boolean;
|
||||
}
|
||||
export {};
|
||||
Reference in new issue
Block a user