Skip to content

Commit

Permalink
Merge pull request #6490 from cquah/issue-6249
Browse files Browse the repository at this point in the history
Add documentation to the Keyboard Shortcuts component in the Advanced Settings Editor to explain how to disable system default shortcuts.
  • Loading branch information
blink1073 committed Jun 6, 2019
2 parents 5058828 + 624678e commit 1b25d01
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/shortcuts-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,22 @@ const shortcuts: JupyterFrontEndPlugin<void> = {
.sort((a, b) => a.command.localeCompare(b.command));
schema.properties.shortcuts.title =
'List of Commands (followed by shortcuts)';

const disableShortcutInstructions = `Note: To disable a system default shortcut,
copy it to User Preferences and add the
"disabled" key, for example:
{
"command": "application:activate-next-tab",
"keys": [
"Ctrl Shift ]"
],
"selector": "body",
"disabled": true
}`;
schema.properties.shortcuts.description = `${commands}
${disableShortcutInstructions}
List of Keyboard Shortcuts`;
}

Expand Down

0 comments on commit 1b25d01

Please sign in to comment.