From e5e1e570b88a5c7efc80223fb9e432f147562d51 Mon Sep 17 00:00:00 2001 From: Mate Paiva Date: Wed, 6 Mar 2019 21:44:35 +0000 Subject: [PATCH] Remove return true on key down function (#2628) Correct me if I am wrong, but I believe that this `return true` is a no-op. I removed it and everything kept working as usual. And, when I was following the tutorial, that particular line created an interrogation mark in my brain. So, my suggestion is to remove that line to avoid creating entropy for no reason. --- docs/walkthroughs/adding-event-handlers.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/walkthroughs/adding-event-handlers.md b/docs/walkthroughs/adding-event-handlers.md index fb115d324..3f197ae09 100644 --- a/docs/walkthroughs/adding-event-handlers.md +++ b/docs/walkthroughs/adding-event-handlers.md @@ -83,7 +83,6 @@ class App extends React.Component { // Change the value by inserting 'and' at the cursor's position. editor.insertText('and') - return true } render() {