frohzinn/bcbsma-storage / llama.cpp /tools /ui /src /lib /utils /is-ime-composing.ts
frohzinn's picture
download
raw
392 Bytes
export function isIMEComposing(event: KeyboardEvent) {
// Check for IME composition using isComposing property and keyCode 229 (specifically for IME composition on Safari, which is notorious for not supporting KeyboardEvent.isComposing)
// This prevents form submission when confirming IME word selection (e.g., Japanese/Chinese input)
return event.isComposing || event.keyCode === 229;
}

Xet Storage Details

Size:
392 Bytes
·
Xet hash:
802b2ffd321313fd3a157fd9a55c88cd8e425ca36d3d26abed2669fe81644dde

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.