From 2f94ed87d8437eb275a7a350c50f06bbc74beb03 Mon Sep 17 00:00:00 2001 From: Bradley Dirheimer <53783914+dirheimerb@users.noreply.github.com> Date: Wed, 25 Oct 2023 09:13:25 -0400 Subject: [PATCH] Update index.tsx (#5165) --- .../lexical-playground/src/plugins/TabFocusPlugin/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lexical-playground/src/plugins/TabFocusPlugin/index.tsx b/packages/lexical-playground/src/plugins/TabFocusPlugin/index.tsx index 49ffca3f00f..f5d3ea9ba12 100644 --- a/packages/lexical-playground/src/plugins/TabFocusPlugin/index.tsx +++ b/packages/lexical-playground/src/plugins/TabFocusPlugin/index.tsx @@ -26,7 +26,7 @@ function registerKeyTimeStampTracker() { 'keydown', (event: KeyboardEvent) => { // Tab - if (event.keyCode === 9) { + if (event.key === 'Tab') { lastTabKeyDownTimestamp = event.timeStamp; } },