From dfef25a2df5acd0a5298ed608e7ad8efc621f401 Mon Sep 17 00:00:00 2001 From: Jarryxin <578676562@qq.com> Date: Sat, 14 Sep 2024 15:24:55 +0800 Subject: [PATCH] fix: compatible with alt and altGr --- src/Mentions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mentions.tsx b/src/Mentions.tsx index fc36916..b774bad 100644 --- a/src/Mentions.tsx +++ b/src/Mentions.tsx @@ -394,7 +394,7 @@ const InternalMentions = forwardRef( if ( key === nextMeasurePrefix || key === 'Shift' || - key === 'Alt' || + which === KeyCode.ALT || mergedMeasuring || (nextMeasureText !== mergedMeasureText && matchOption) ) {