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) ) {