From 0da1dd128c115a614c7d16f648f929e2e8f863e7 Mon Sep 17 00:00:00 2001 From: sherwinyu Date: Fri, 29 Nov 2019 14:25:40 -0800 Subject: [PATCH] Update Adding Event Handlers walkthrough (#3169) The previous example no longer uses `onChange`, so don't reference it in this walkthrough. --- docs/walkthroughs/02-adding-event-handlers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/walkthroughs/02-adding-event-handlers.md b/docs/walkthroughs/02-adding-event-handlers.md index e027e4047..08d2d2229 100644 --- a/docs/walkthroughs/02-adding-event-handlers.md +++ b/docs/walkthroughs/02-adding-event-handlers.md @@ -2,7 +2,7 @@ Okay, so you've got Slate installed and rendered on the page, and when you type in it, you can see the changes reflected. But you want to do more than just type a plaintext string. -What makes Slate great is how easy it is to customize. Just like other React components you're used to, Slate allows you to pass in handlers that are triggered on certain events. You've already seen how the `onChange` handler can be used to store the changed editor value, but let's try adding more... +What makes Slate great is how easy it is to customize. Just like other React components you're used to, Slate allows you to pass in handlers that are triggered on certain events. Let's use the `onKeyDown` handler to change the editor's content when we press a key.