From bdd2bf45a9457c8d933153e265bed7ee88d62478 Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Wed, 2 Oct 2024 12:25:08 +0100 Subject: [PATCH] chore: Format --- core/shortcut_registry.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/shortcut_registry.ts b/core/shortcut_registry.ts index b1352c2a93..32615c8668 100644 --- a/core/shortcut_registry.ts +++ b/core/shortcut_registry.ts @@ -247,8 +247,10 @@ export class ShortcutRegistry { if (!shortcutNames) return false; for (const shortcutName of shortcutNames) { const shortcut = this.shortcuts.get(shortcutName); - if (!shortcut || - (shortcut.preconditionFn && !shortcut.preconditionFn(workspace))) { + if ( + !shortcut || + (shortcut.preconditionFn && !shortcut.preconditionFn(workspace)) + ) { continue; } // If the key has been handled, stop processing shortcuts. @@ -404,7 +406,7 @@ export namespace ShortcutRegistry { */ keyCodes?: (number | string)[]; - /** + /** * Value of `allowCollision` to pass to `addKeyMapping` when * binding this shortcut's `.keyCodes` (if any). *