Skip to content

Commit

Permalink
updated code because of TS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
devrari committed Oct 28, 2023
1 parent c2877a3 commit bf0a912
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/KeyboardShortcut/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type EventHandler = {
shouldPreventDefault: boolean;
shouldBubble: boolean | (() => void);
excludedNodes: string[];
shouldStopPropagation: boolean;
};

// Handlers for the various keyboard listeners we set up
Expand Down Expand Up @@ -135,6 +136,7 @@ function subscribe(
priority = 0,
shouldPreventDefault = true,
excludedNodes = [],
shouldStopPropagation = false,
) {
const platformAdjustedModifiers = getPlatformEquivalentForKeys(modifiers);
const displayName = getDisplayName(key, platformAdjustedModifiers);
Expand All @@ -150,6 +152,7 @@ function subscribe(
shouldPreventDefault,
shouldBubble,
excludedNodes,
shouldStopPropagation,
});

if (descriptionKey) {
Expand Down

0 comments on commit bf0a912

Please sign in to comment.