From 15377a7d474a03fcf2ce71dd1c365c2a1210497d Mon Sep 17 00:00:00 2001
From: skirtle <65301168+skirtles-code@users.noreply.github.com>
Date: Mon, 5 Jul 2021 10:10:26 +0100
Subject: [PATCH] docs: extra examples of migrating keyCode modifiers
---
src/guide/migration/keycode-modifiers.md | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/guide/migration/keycode-modifiers.md b/src/guide/migration/keycode-modifiers.md
index e7ceed4831..d2f7279787 100644
--- a/src/guide/migration/keycode-modifiers.md
+++ b/src/guide/migration/keycode-modifiers.md
@@ -46,7 +46,10 @@ Since [`KeyboardEvent.keyCode` has been deprecated](https://developer.mozilla.or
```html
-
+
+
+
+
```
As a result, this means that `config.keyCodes` is now also deprecated and will no longer be supported.
@@ -55,6 +58,14 @@ As a result, this means that `config.keyCodes` is now also deprecated and will n
For those using `keyCode` in their codebase, we recommend converting them to their kebab-cased named equivalents.
+The keys for some punctuation marks can just be included literally. e.g. For the `,` key:
+
+```html
+
+```
+
+Limitations of the syntax prevent certain characters from being matched, such as `"`, `'`, `/`, `=`, `>`, and `.`. For those characters you should check `event.key` inside the listener instead.
+
[Migration build flags:](migration-build.html#compat-configuration)
- `CONFIG_KEY_CODES`