fix: Ignore Enter pressed during IME composition in input fields

Closes #1703
This commit is contained in:
babu-ch
2026-07-03 20:54:52 +09:00
parent 856768c45e
commit 9f18028337
11 changed files with 200 additions and 3 deletions
+2 -1
View File
@@ -5,5 +5,6 @@
import Config from '../constants/Config';
// eslint-disable-next-line import/prefer-default-export
export const isComposing = (event) => event.nativeEvent.isComposing || event.keyCode === 229;
export const isModifierKeyPressed = (event) => (Config.IS_MAC ? event.metaKey : event.ctrlKey);