Skip to content

Commit

Permalink
chore: Format
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcallen committed Oct 2, 2024
1 parent e0b7daa commit bdd2bf4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/shortcut_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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).
*
Expand Down

0 comments on commit bdd2bf4

Please sign in to comment.