Questions tagged [swift-keyboard]
20 questions
15
votes
2 answers
UIKeyboardWillShowNotification returning incorrect frame for swift keyboard
I am using UIKeyboardWillShowNotification and UIKeyboardWillHideNotification to handle keyboard.
This is the function called when keyboard is shown :
-(void) keyboardWillShow:(NSNotification *)note
{
CGRect keyboardBounds;
…

Nitish
- 13,845
- 28
- 135
- 263
14
votes
1 answer
SwiftUI: how to detect when List is scrolled?
I have a view with a search bar at the top and a SwiftUI List below. I need to detect when the List is scrolled so I can dismiss the search bar keyboard. How would I call some code when the List is scrolled? Thanks!

pejalo
- 923
- 11
- 24
7
votes
2 answers
Disable auto-correct functionality in Espresso test
I wrote an Espresso test that writes some text to a TextView, performs an action and then checks whether the text in the TextView is still the same.
The test fails on one of the test devices (Huawei P20, Android 8.1.0) because the entered text is…

arne.z
- 3,242
- 3
- 24
- 46
3
votes
2 answers
How to disable the SwiftKey (third-party keyboard) behavior in EditText?
I'm using the standard EditText control in my Android app.
The input for this EditText should be inserted only from the built-in Keypad of the app.
When SwiftKey (third-party keyboard app) is installed on the device, it causing to strange behavior…

Ben
- 71
- 1
- 7
2
votes
0 answers
iOS Custom Keyboard Extension Full Context in Field
Currently, I am working on a custom Swift keyboard and using the Keyboard Kit framework.
I have researched various solutions, and this one is the best
But after I implemented this code for Swift 5, it works when I placed cursor end of the…

excE
- 70
- 9
2
votes
2 answers
Prevent Autocorretion of a Word in Swift
My client's chat app is autocorrected whenever it is mentioned in UITextViews within the app.
So if it's called XYZ (just making this up) whenever users type XYZ in a UITextView in the app, it tries to autocorrect it.
I know this is a small/petty…

NullHypothesis
- 4,286
- 6
- 37
- 79
2
votes
1 answer
Swiftkey ignores TextInputEditText flag InputType.TYPE_TEXT_FLAG_CAP_WORDS - doesn't capitalize
I have a simple TextInputLayout. TextInputEditText which is inside TextInputLayout has two InputType flags -
InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS
and
InputType.TYPE_TEXT_FLAG_CAP_WORDS
These flags are set programmatically. It should disable…

Tom Wayne
- 1,288
- 1
- 12
- 31
2
votes
0 answers
Soft keyboard looses prediction after restartInput()
I have a very weird, but consistent bug in my app with any standard Android keyboard that supports word predictions.
What I’m doing is that I call InputMethodManager.restartInput() after I evaluated the input of an EditText to show a different IME…

Thomas Keller
- 5,933
- 6
- 48
- 80
1
vote
1 answer
How to get current keybord language?
I have to get currently selected keyboard language in android. So far I am using this:
InputMethodManager imm = (InputMethodManager)getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
InputMethodSubtype ims =…

Nikolay
- 59
- 4
0
votes
0 answers
How to stop View content from moving up when we open keyboard?
I want the view content not moves up when I open the keyboard I have more content in the view so it push the top content out of the screen and I want it unchanged when the keyboard is open or closed.
I tried this solution but its not working in my…
0
votes
1 answer
In SwiftUI, how do I remove a view stuck on top of the keyboard
I have a view under a Form. When I enter a text field the view is stuck on top of the keyboard.
Code in question:
// other stuff
Form {
Section {
TextField("Enter your desired username", text: $page.username)
}
Section {
…

Fred
- 381
- 5
- 17
0
votes
1 answer
Flutter TextInputAction.done not showing checkmark button
I have this TextFormField in a Stateful widget
TextFormField(
decoration: InputDecoration(labelText: "Image URL"),
keyboardType: TextInputType.url,
textInputAction: TextInputAction.done,
…

user690069
- 330
- 4
- 13
0
votes
1 answer
iOS - Keep input keyboard of TextField state when change to different TextField
I have 10 TextFields, each TextField is a character (it can be numbers or letters). Each TextField will have difference appearance, 10 fields will build to a 10 characters code.
Every time the user input a character into the field, I will switch…

Truong Vu
- 204
- 4
- 14
0
votes
1 answer
How to disable all third-party keyboard in EditText in my own application?
I want to disable all third party keyboard from my application as it is a security concern. Is it possible in Android? If possible, then how can i do it. I want to use only default keyboard. Thanks in advance.

fahad_sust
- 526
- 1
- 6
- 21
0
votes
0 answers
Android How do I prevent the use of a swift keyboard?
i am developing a weather app. In an activity users can search cities. I used AutoCompleteTextView to searching. On using swift keyboard devices app is crashing with second letter on entering AutoCompleteTextView. On emulators or using other…

Kemal Aydeniz
- 119
- 2
- 10