mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-27 17:54:16 +08:00
[fix] TextInput 'onKeyPress' return values
Match the current React Native API for 'onKeyPress'. Fix #518 Close #537
This commit is contained in:
committed by
Nicolas Gallagher
parent
4865c7bcce
commit
85b2afc313
@@ -103,8 +103,10 @@ Callback that is called when the text input is focused.
|
||||
|
||||
**onKeyPress**: ?function
|
||||
|
||||
Callback that is called when a key is pressed. Pressed key value is passed as
|
||||
an argument to the callback handler. Fires before `onChange` callbacks.
|
||||
Callback that is called when a key is pressed. This will be called with `{
|
||||
nativeEvent: { key: keyValue } }` where keyValue is 'Enter` or 'Backspace' for
|
||||
respective keys and the typed-in character otherwise including ' ' for space.
|
||||
Fires before onChange callbacks.
|
||||
|
||||
**onSelectionChange**: ?function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user