Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahejkm committed May 16, 2024
1 parent f95a296 commit 325b4ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lexical/src/LexicalUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,9 @@ export function isUnderline(
metaKey: boolean,
ctrlKey: boolean,
): boolean {
return key === 'U' && !altKey && controlOrMeta(metaKey, ctrlKey);
return (
key.toLowerCase() === 'u' && !altKey && controlOrMeta(metaKey, ctrlKey)
);
}

export function isParagraph(key: string, shiftKey: boolean): boolean {
Expand Down

0 comments on commit 325b4ec

Please sign in to comment.