Skip to content

Commit 88f13c5

Browse files
feat: allow applications to trigger the shortcut help dialog (#290)
This will be be used on an interm basis in MakeCode.
1 parent 34e9319 commit 88f13c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ export class KeyboardNavigation {
137137
this.navigationController.dispose();
138138
}
139139

140+
/**
141+
* Toggle visibility of a help dialog for the keyboard shortcuts.
142+
*/
143+
toggleShortcutDialog(): void {
144+
this.navigationController.shortcutDialog.toggle();
145+
}
146+
140147
/**
141148
* Update the theme to match the selected glow colour to the cursor
142149
* colour.

0 commit comments

Comments
 (0)