Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a caption to the table present in the 'help' dialog #7149

Merged
merged 7 commits into from
Mar 17, 2022
12 changes: 7 additions & 5 deletions source/nodejs/adaptivecards-designer/src/help-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ export class HelpDialog extends Dialog {
keyboardHeading.innerText = "Keyboard Shortcuts";
this._renderedElement.appendChild(keyboardHeading);

let keyboardText = document.createElement("div");
keyboardText.innerText = "These keyboard shortcuts only work when the keyboard focus is within either the card payload or sample data editors";
this._renderedElement.appendChild(keyboardText);
this._renderedElement.appendChild(document.createElement("br"));

let shortcutTable = document.createElement("table");

let tableCaption = shortcutTable.createCaption();
tableCaption.style.textAlign = "left";
tableCaption.innerText = "These keyboard shortcuts only work when the keyboard focus is within either the card payload or sample data editors";

shortcutTable.appendChild(document.createElement("br"));

shortcutTable.appendChild(this._getShortcutRow("Shortcut", "Description", true));
shortcutTable.appendChild(this._getShortcutRow("Alt-F1", "Show help dialog for editor"));
shortcutTable.appendChild(this._getShortcutRow("Ctrl-M", "Toggle behavior of TAB key. By default, pressing TAB will insert a TAB character. When toggled, pressing TAB will navigate to the next focusable item."));
Expand Down