-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Keyboard handling to allow all characters on Soft Input Panel and…
… hardware keyboard Summary: public This diff fixes two issues: 1) Makes it so that when a keyboard is displayed, all keys in that keyboard actually can be set as text. Previously you could display a Numeric keyboard and it would only allow entering numbers despite the keyboard having other keys like comma, plus, space, etc. a) This also allows any key entered on a physical keyboard to go through to the view even if not present on the Soft Input keyboard 2) Makes more robust our Filter setting in setMaxLength so that we only affect the InputFilter.LengthFilter if present instead of all. This works by creating a new KeyListener which will respond to getInputType as the KeyListener it is replacing (like a DigitsKeyListener for a numeric keyboard) but allow all characters when actually entering text. Reviewed By: andreicoman11 Differential Revision: D2880851 fb-gh-sync-id: fa5eb549a849d8f30c592d7eac48054ca6a75544
- Loading branch information
Dave Miller
authored and
facebook-github-bot-5
committed
Feb 2, 2016
1 parent
80e1ca8
commit fa4a5af
Showing
2 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters