add introduction to all pages, move under table of contents

This commit is contained in:
Hans Pagel
2020-10-01 12:26:20 +02:00
parent 1250f1f1b6
commit d99b75f6dd
13 changed files with 42 additions and 13 deletions

View File

@@ -1,4 +1,8 @@
# Keyboard Shortcuts
## Table of Contents
## Introduction
Keyboard shortcuts may be strings like `'Shift-Control-Enter'`. Keys are based on the strings that can appear in `event.key`, concatenated with a `-`. There is a little tool called [keycode.info](https://keycode.info/), which shows the `event.key` interactively.
Use lowercase letters to refer to letter keys (or uppercase letters if you want shift to be held). You may use `Space` as an alias for the <code>&nbsp;</code>.
@@ -7,8 +11,6 @@ Modifiers can be given in any order. `Shift`, `Alt`, `Control` and `Cmd` are rec
You can use `Mod` as a shorthand for `Cmd` on Mac and `Control` on other platforms.
## Table of Contents
## Overwrite keyboard shortcuts
```js