fix: Ignore Enter pressed during IME composition in input fields
Closes #1703
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user