Skip to content

Commit a09cbd7

Browse files
authored
fix: Fix the build. (#313)
1 parent 9b9ffc8 commit a09cbd7

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/navigation_controller.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export class NavigationController {
8888
exitAction: ExitAction = new ExitAction(
8989
this.navigation,
9090
this.canCurrentlyNavigate.bind(this),
91+
);
9192

9293
enterAction: EnterAction = new EnterAction(
9394
this.navigation,
@@ -238,18 +239,24 @@ export class NavigationController {
238239
* @returns whether keyboard navigation is currently allowed.
239240
*/
240241
private canCurrentlyNavigate(workspace: WorkspaceSvg) {
241-
return this.canCurrentlyNavigateInToolbox(workspace) ||
242-
this.canCurrentlyNavigateInWorkspace(workspace);
242+
return (
243+
this.canCurrentlyNavigateInToolbox(workspace) ||
244+
this.canCurrentlyNavigateInWorkspace(workspace)
245+
);
243246
}
244247

245248
private canCurrentlyNavigateInToolbox(workspace: WorkspaceSvg) {
246-
return workspace.keyboardAccessibilityMode &&
247-
this.navigationFocus == NAVIGATION_FOCUS_MODE.TOOLBOX;
249+
return (
250+
workspace.keyboardAccessibilityMode &&
251+
this.navigationFocus == NAVIGATION_FOCUS_MODE.TOOLBOX
252+
);
248253
}
249254

250255
private canCurrentlyNavigateInWorkspace(workspace: WorkspaceSvg) {
251-
return workspace.keyboardAccessibilityMode &&
252-
this.navigationFocus == NAVIGATION_FOCUS_MODE.WORKSPACE;
256+
return (
257+
workspace.keyboardAccessibilityMode &&
258+
this.navigationFocus == NAVIGATION_FOCUS_MODE.WORKSPACE
259+
);
253260
}
254261

255262
/**

0 commit comments

Comments
 (0)