keyBindings: move interface definitions to loader.ts

This commit is contained in:
Peter Fajdiga
2023-06-16 14:20:49 +02:00
parent 208ef7d9fb
commit 9ec9e8e62d
2 changed files with 15 additions and 15 deletions

View File

@@ -1,18 +1,3 @@
interface KeyBinding {
name: string;
description: string;
defaultKeySequence: string;
action: keyof ReturnType<typeof initActions>;
}
interface NumKeyBinding {
name: string;
description: string;
defaultModifiers: string;
fKeys: boolean;
action: keyof ReturnType<typeof initNumActions>;
}
const keyBindings: KeyBinding[] = [
{
"name": "window-toggle-floating",

View File

@@ -1,3 +1,18 @@
interface KeyBinding {
name: string;
description: string;
defaultKeySequence: string;
action: keyof ReturnType<typeof initActions>;
}
interface NumKeyBinding {
name: string;
description: string;
defaultModifiers: string;
fKeys: boolean;
action: keyof ReturnType<typeof initNumActions>;
}
function catchWrap(f: () => void) {
return () => {
try {