From 5b3c0d011664ae57611c0adc0f66df0250358e50 Mon Sep 17 00:00:00 2001 From: SpaceComet Date: Mon, 16 Aug 2021 12:40:13 -0400 Subject: [PATCH] Update old information on the website playground --- .../listening-to-key-events/sample.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/playground/new-samples/interacting-with-the-editor/listening-to-key-events/sample.js b/website/playground/new-samples/interacting-with-the-editor/listening-to-key-events/sample.js index ea6e80b6..6639aef8 100644 --- a/website/playground/new-samples/interacting-with-the-editor/listening-to-key-events/sample.js +++ b/website/playground/new-samples/interacting-with-the-editor/listening-to-key-events/sample.js @@ -7,4 +7,5 @@ var myBinding = editor.addCommand(monaco.KeyCode.F9, function() { alert('F9 pressed!'); }); -// When cleaning up remember to call myBinding.dispose() +// You can't dispose `addCommand` +// If you need to dispose it you might use `addAction` or `registerCommand`