I'm building an app and I need to use an input text.
The problem comes when you tap on this input text, the keyboard doesn't appear.
I don't know why, I don't know what I'm doing wrong. It is supposed to be straightforward.
Here is some of my code:
<View style={ styles.storyContentContainer }>
<TextInput ref='username' style={{width: 300, height: 20, borderWidth: 1,}}/>
</View>
And a video to show to you guys when the input text gets the focus nothing happen:
I hope you guys can help me with this issue.
I assume you are running this on the iOS simulator? Turn off the host machine's hardware keyboard integration by unchecking Hardware > Keyboard > Connect Hardware Keyboard, or you can use the Keyboard Shortcut: Shift + Cmd + K, and the keyboard will appear when you focus on a TextInput.
You can also manually toggle the software keyboard visibility with Cmd +K.
On a real device the keyboard should work out-of-the-box as expected.
Here is how you can easily disconnect your hardware key board.
Now when you will focus inside textInput area, it will open the keypad of iOS simulator
If the keyboard is not popping on clicking of TextInput then just tap on device means simulator and press cmd + k.
After that, it will be showing every time you tap on the TextInput
Related
The virtual keyboard in the simulator is not showing when I focus on a text field.
It showed the first time I clicked inside the text field but subsequent clicks in the text field do not bring up the virtual keyboard.
This is happening for the IPhone 6 to iPhone X simulators.
I'm using Visual Studio Mac.
It would appear the simulator detected my Macs keyboard, so it no longer shows the virtual keyboard.
How can I fix this so that the virtual keyboard shows whenever I interact with a control that accepts text input.
Solution
In the top menu bar of the simulator I had to turn "Connect Hardware Keyboard" off.
I got there by going to Hardware -> Keyboard -> Connect Hardware Keyboard
I import an EnyoJS project for WebOS platform into Tizen Studio, then I ran it in a Samsung TV and there is this little problem:
When I click on a text field the virtual keyboard shows up in the TV screen, then if I click on a letter the keyboard goes down.. The letter does appear in the text field but I have to press on it again to make the keyboard shows up and press on the next letter. So I have to repeat this over and over just to write a whole word
How to fix this?
UPDATE 1:
It seems like it only happens with the Input kind component. I have some other panels with TextArea component and the keyboard works fine.
When I open the Chrome debug view and set the device to "iPad Mini" to simulate its screen size (and touch events), interacting with a text input causes the Windows on-screen keyboard to open.
This computer is not a tablet, and has never had a touch screen. In the Windows Ease of Access -> Keyboard settings Turns on the On-Screen Keyboard is off.
I can only assume that Chrome "simulating" an iPad Mini is causing Windows to think there's a touchscreen. I've been using this feature for a few months now, and the keyboard opening only started happening recently. I may have simply flipped a switch in the settings (of Chrome or Windows) on accident. If that's the case, I'd like to know how to flip it back!
This is frustrating because I have to close the keyboard each time as it covers up a large portion of the web-app.
The same page without the "iPad Mini" simulation does not open the keyboard:
(This keyboard also opens when choosing any device that has a touch screen, not just iPad Mini.)
Chrome doesn't emulate the keyboards of the device profiles you pick. An image of a keyboard will show for certain ones, like the iPhone 5X, but it is non-functional and is just present to allow you to see how the various elements on the page respond to the keyboard. You can see my answer here for more details on viewing that. However, this is not the same keyboard you are seeing.
It looks as though there is something in Windows, which is triggering the on-screen keyboard. I'm not sure why it would still appear if you have it disabled, but you could try a couple of things, based on what I've found online:
Make sure 'Touch Keyboard and Handwriting Panel Service' is set to disabled in Services (services.msc)
SetLOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\ ShowTabletKeyboard from value 1 to 0 (regedit.exe)
Check there is no other 3rd party software running, which may affect your keyboard behaviour.
I'm checking my app against iOS8 in the simulator and one thing that puzzles me is that when I tap on a UITextField or UITextView the keyboard doesn't appear on the screen! I can still enter text with my hardware keyboard. Also, if the input element has a inputAccessoryView, that view is shown on the bottom of the screen. So everything works as expected except that the keyboard is not appearing on the screen.
This is valid for all input elements throughout the app.
I don't use the new feature for custom keyboard.
Checked the Settings - don't see anything that can help.
I know XCode6 is still a beta but this seems too obvious problem to be a bug (or is it!?)
In the iOS Simulator menu select:
Hardware > Keyboard > Toggle Software Keyboard
or press Cmd + K.
The Connect Hardware Keyboard option in the same menu has to be enabled.
This seems to be bug in iOS 8. There are two fix to this problem:
Toggle between simulator keyboard and MacBook keyboard using [Command+K] shortcut key.
Reattach keyboard to simulator:
a. Open Simulator
b. Select Hardware -> Keyboard
c. Uncheck and then check 'Connect Hardware Keyboard'
OR simply press [Shift + Command + K] shortcut key
i had the same issue and i resolved by doing following steps
1) Select the iOS Simulator
2) Goto Hardware in menu (top Left)
3) Select Keyboard
4) Uncheck the "Connect Hardware Keyboard" option
Happy Coding :)
I highly recommend to disable "Slow Animations" which can be found under "Debug" -> "Slow Animations".
For me, that permanently fixes the issue.
Shortcut is: CMD + T
I have some code that moves a UITextView out from under the on-screen keyboard. The problem is, sometimes people will surely use a Bluetooth keyboard instead.
How can I detect that that is what's being used for input?
Also, BTW: I can detect when the on-screen keyboard goes away, but how to approach the same intention when it's a wireless keyboard?
Thanks.
You can detect when a bluetooth keyboard is connected by registering for UIKeyboardWillShowNotification the same way that you did for detecting when the keyboard hides. If a BT keyboard is connected, you will not receive a keyboard will show notification when the text field or text view that is requesting the keyboard becomes the first responder.