···6363 }
64646565 function onKey(event: KeyboardEvent) {
6666- if (!ref.current || event.defaultPrevented) return;
6666+ if (!ref.current || event.defaultPrevented || event.isComposing) return;
67676868 // Mark whether focus is moving forward for the `onFocus` handler
6969 if (event.code === 'Tab') {
+1-1
src/useMenuFocus.ts
···3636 }
37373838 function onKey(event: KeyboardEvent) {
3939- if (!ref.current || event.defaultPrevented) return;
3939+ if (!ref.current || event.defaultPrevented || event.isComposing) return;
40404141 const owner = (ownerRef && ownerRef.current) || selection && selection.element;
4242 const active = document.activeElement as HTMLElement;