1,038 questions
0
votes
0
answers
129
views
How to make focusable items inside androidx.appcompat.app.ActionBar
I want to adapt our application for t9 keyboard,but i can't find way,how to make androidx.appcompat.app.ActionBar items focusable,to move errow keys between menue items,or between menue items and ...
0
votes
0
answers
51
views
How to change mobile keyboard orientation without changing device orientation
I am working on a mobile app for IOS and Android in Unity, it needs to swap between screen orientations, landscape to portrait, with input text in both orientations. The transition-animations in iOS ...
0
votes
0
answers
95
views
Is it possible to use a bluetooth keyboard with react-native-ble-plx without telling the phone it's a keyboard?
Hear me out, I promise this will make sense.
Context:
Usually when connecting a bluetooth keyboard to a mobile device (via the settings) the virtual keyboard hides itself. They cannot be used ...
1
vote
1
answer
2k
views
SwiftUI ScrollView Content Movement with Keyboard
I'm currently working on a SwiftUI project and facing an issue with the ScrollView component. Specifically, I'm trying to implement functionality similar to WhatsApp or Telegram chat, where the ...
2
votes
3
answers
713
views
How do I get access to ToolBar or InputAccessoryView that appears on top of keyboard without using textfield instance
Whenever keyboard appears in the project , I can find that by adding observer to UIKeyboardWillShowNotification.
But I want to get access to the tool bar that appears on top of the keyboard globally ...
0
votes
1
answer
123
views
Emulating a USB keyboard with a Rasberry PI - trying to send fn+h
I have captured using tshark a set of 8 byte data that is generated as I type characters on an Apple keyboard connected to a Raspberry Pi 4B via one of its USB-A ports.
When I take the captured data ...
1
vote
1
answer
679
views
Mobile Onscreen Keyboard Closing Prevents ScrollIntoView
I've created a simple search bar using a text input field.
An onkeyup event handles the searching of results and displays relevant matches directly beneath the search bar. For each of the returned ...
11
votes
1
answer
3k
views
Keyboard overlapping with TextField on a ModalBottomSheet (Jetpack compose)
The device's keyboard is overlapping with the ModalBottomSheet that has a text field, I have already set android:windowSoftInputMode="adjustResize" in my manifest file And consumed the ...
0
votes
0
answers
1k
views
How to type The Replacement Character (�) from keyboard?
I want to type "The Replacement Character" in my data, how can I type � it from the English keyboard? Is there any shortcut to type it ?
0
votes
1
answer
180
views
I need help on making a touch screen keyboard for an application that only uses touch screen. I am specifically having problems with shift and caps
I am not sure where to go with shift and caps key, I don't know whether I can make different values on what I am already working on for this or not. I am new to Jpanel, so any help would be much ...
0
votes
1
answer
106
views
doesn't show keyboard when clicking on UITextView Xamarin.IOS
I have a xamarin project that is initialized through c# code (I deleted the main.storyboard file), initialization occurs in the appDelegate class and SceneDelegate, the project contains tabs.
The ...
2
votes
1
answer
2k
views
How to make an element fixed on top of the mobile keyboard?
I am building an editor using editorJS. For PC, I created a sticky toolbar at the top which follows the viewport scroll. However, for mobile, the stikcy toolbar just won't get fixed on top of the ...
1
vote
1
answer
1k
views
SwiftUI: Decide which content the keyboard overlaps
I'm trying to find a way to mark which content is overlapped by the keyboard that pops up when a TextField is focused.
Consider the minimal example below:
VStack {
TextField(text: $...
1
vote
1
answer
155
views
Keyboard (numpad) toolbar working but not showing
I tried to add a toolbar for my UITextFiled, the keyboard is set to numpad. It is working but the button is not showing. I created an extension for my UITextfield
extension UITextField {
/// Adding a ...
2
votes
1
answer
632
views
SwiftUI - Toggle keyboard type (default/numeric) using Toggle switch?
I am creating an application setup screen in iOS using SwiftUI, where a user will enter a password and then confirm it. I have created a ToolbarItemGroup for my keyboard that will let the user toggle ...
3
votes
0
answers
305
views
How to identify the UIKeyboard predictive text selection action?
I'm working on custom UIControl where I will be opening a keyboard(The custom control is become a first responder). In this case I want to identify or detect the which suggested keyword been selected ...
1
vote
1
answer
193
views
Keyboard's globe button (🌐) was disappeared, iOS 15
when updated to iOS 15 , my app got this issue. Keyboard's globe button (🌐 at left bottom corner) was disappeared, but we could click it.
Does anyone have an idea of what could be happening here?
0
votes
0
answers
20
views
Catch what user tapped (Textview1 or Textview2 or Button1) when keyboardDidShow (via NSNotification)
I would like to intercept what button/textview or #tag the user tapped when I reach the func keyboardDidShow
@objc func keyboardDidShow(notification: NSNotification) {
guard let userInfo = ...
8
votes
1
answer
703
views
Keyboard in UISheetPresentationController push view up
I have view controller that I push via sheetPresentationController:
let addRSSSheetVC = AddRSSSheetViewController()
let navigationController = UINavigationController(rootViewController: ...
3
votes
1
answer
119
views
inputAccessoryView like iOS Mail
Mail on iOS 15 has a new inputAccessoryView that combines typing suggestions with other action buttons such as text formatting, attachments etc. By default the typing suggestions are displayed with an ...
0
votes
0
answers
175
views
Coloring Text in iOS Custom Keyboard
I'm wondering if someone would be able to point me towards how to properly color text that's typed using a custom keyboard for iOS. Generally the question relates to how the emoji keyboard is able to ...
3
votes
1
answer
5k
views
How do I get the ScrollView to keep its position when the keyboard appears with iOS 15/Xcode 13?
I have a ScrollView with a TextField underneath, both in a VStack. How do I get the ScrollView to keep its position when the keyboard appears with iOS 15/Xcode 13? To be more precise, if I am at line ...
1
vote
1
answer
300
views
Keyboard is different height causing view to be resized incorrectly
I'm trying to adjust my collection view to be resized differently depending on the keyboard so it just occupies the space on the screen where the keyboard is not. However, when I push a view and come ...
0
votes
0
answers
646
views
How to customize the keyboard with react native
How can I customize a keyboard similar to the one in the screenshot below with a custom toolbar above it? Is there a library that can implement it?
1
vote
0
answers
353
views
Bottom Safe Area color goes through the translucent keyboard iOS
I currently have the bottom safe area's color set as blue by setting the view's background color as UIColor.blue
However, the problem is when the keyboard comes up as a first responder, I still get a ...
0
votes
1
answer
362
views
How to prevent the last table cell from overlapping with the keyboard
I have a chat app that displays the messages in a table view. When I invoke the keyboard, I want:
The table view to scroll to the bottom
I want there to be no overlap between any messages and the ...
6
votes
2
answers
750
views
How to addTarget (handleInputModeList) into SwiftUI Button
I've been trying to make a custom keyboard within SwiftUI. The instructions about creating a custom keyboard, primarily written in UIKit causing some struggles with my SwiftUI code in configuration to ...
2
votes
1
answer
1k
views
UITextField decimal pad show dot instead of comma
How to show . instead of , symbol for decimal pad?
I found a few solution with using NSNumberFormatter, replacing string on the fly and extension of UIEnglishTextField, which should return localised ...
7
votes
0
answers
2k
views
iOS Keyboard Flickering when using textField.textContentType
I've picked up on a weird little bug that I can't fix. When moving between textfields, the toolbar (associated as the textfield's input accessory view) and keyboard are flickering. It's only ...
0
votes
1
answer
415
views
how to call function key (F1, F2, F3) in Swift?
I'm trying to add a button in an IOS app using Swift so that when it's clicked, it executes F1...F12 in a regular keyboard for a Mac or Windows.
I look into UIKeyCommand but that doesn't solve the ...
1
vote
2
answers
1k
views
Why in iOS14 (or at least iOS14.4) keyboardWillShowNotification is fired twice, while in iOS13 only one?
Why in iOS14 (or at least iOS14.4 iPhone 12 simulator) keyboardWillShowNotification is fired twice, while in iOS13 only once?
My final goal is to make visible textfields that are hidden by the ...
2
votes
1
answer
423
views
How to show the standard number keyboard without a UITextField in Swift on viewDidLoad
I'm trying to show the standard's number keyboard when the user gets to my ViewController, and be able to capture user's input to fill some circles that are on the UI each time the user enters a ...
0
votes
2
answers
852
views
How to make text typed in TextField undeletable?
I am Fairly new to programming, after looking around I thought that id take my chances with asking here. I am basically needing for text typed in a TextField to be undeletable, although additional ...
0
votes
1
answer
481
views
TVOS UISearchController keyboard stopping to show
In my TvOS app I have a viewController with UISearchContainerViewController. Here is the tree of views:
and
The searchController looks good and work as needed. From this viewController I can go to ...
2
votes
1
answer
904
views
UITableView.indexPathsForVisibleRows not returning correct values when table view content is offset to avoid visible keyboard
I have a chat view and when messages come in, if the last cell was visible, then the table view is supposed to scroll to the end so that the new message is visible. This behavior works properly when ...
0
votes
1
answer
1k
views
Swift how to detect if keyboard is fully visible or fully hidden only (and not partially visible)
This question is related to the following questions: Detect when keyboard is fully visible and prevent keyboard appearance handling code from adding extra offset for hidden element
I was initially ...
0
votes
0
answers
88
views
Detect when keyboard is fully visible and prevent keyboard appearance handling code from adding extra offset for hidden element
I want to know if the keyboard is fully visible and not if it's in in-between states of presentation. Unfortunately, all the answers use UIKeyboardDidShow, UIKeyboardWillShow, or ...
1
vote
1
answer
715
views
Smoothly scrolling tableview up by fixed constant when keyboard appears so last cells are still visible
When the keyboard appears, I am shifting the bottom-most view up by a constant. But due to this the hight of the UITableView also reduces and the cells that were previously visible are no longer ...
0
votes
1
answer
422
views
Resize UITextView when keyboard appears
I try to resize the height of a UITextView-field when the keyboard appears (iOS 14.2, Xcode 12.3). The distance from the bottom of the UITextView to the save area is 90 and hence the lower part of it ...
1
vote
2
answers
218
views
Why observer onKeyboardDisplayed is called before textViewDidBeginEditing
My App is in swift. When I edit a UITextField, sometimes the keyboard hides the field. So I use the delegate textFieldDidBeginEditing to set an "activeTextField" (and textFieldDidEndEditing ...
0
votes
0
answers
103
views
iPhoneX inputView wrong heigh
I have a simple ViewController
The problem is the code
print("HEIGHT (keyboardSize.height)") prints Height = 69
Why ?
I have set input view frame = CGRect(x: 0, y: 0, width: UIScreen.main....
2
votes
0
answers
231
views
Using accent keys inside a hotstring correctly (^| to substitute ↑ and more, Autohotkey, german keyboard)
Autohotkey seems to get confused by diacritic keys and as such by the behavior of accent keys on some layouts. This basically works like the SHIFT key of your mobile phone, but is ended/escaped by ...
0
votes
0
answers
141
views
iOS KeyboardManager not working when the application is turned on a second time
I have a strange problem. The keyboard works when I have the app connected to Xcode. If app turn off and on again, the keyboard with UITextView and UITextField no longer works... but UISearchField ...
1
vote
1
answer
1k
views
UICollectionView jumps/scrolls when a nested UITextView begins editing
My first question on SO so bear with me. I have created a UICollectionViewController which has a header and 1 cell. Inside the cell is a tableview, inside the table view there are multiple static ...
2
votes
1
answer
1k
views
How do I add a toolbar to a keyboard extension?
I'm building a custom keyboard and I can't find any tutorial or article about that.
What I'm trying to do is adding a toolbar like the one you can see in the screenshot below. As a reference you can ...
2
votes
2
answers
761
views
changing height of a custom keyboard when rotating
I have a customized keyboard created by code, it is a unique input view for a specific textfield. I implement this in my project:
let keyboardContainerView = KBContainerView(frame: CGRect(x: 0.0, y: 0....
0
votes
1
answer
347
views
Scroll view content inset issue on keyboardWillShow
I've following code to adjust scroll view inset. The content inside scroll view goes below the keyboard limit as shown in screen recording - https://i.sstatic.net/6itwk.jpg
How do I fix this so that ...
3
votes
0
answers
678
views
CSS (/JS?) detect if a keyboard is displayed on the screen (phones and other touch devices)
Is there a CSS media query to determine if a keyboard is displayed on the screen?
Consider the following case: I have a website with a search icon in the header. When a user clicks that icon, a ...
2
votes
1
answer
404
views
How do I remove the background under a custom input view for a UITextField
I have set up a UITextField in order to display a picker view as an input view for this keyboard. I want the picker view to have rounded corners however the area under the corners still displays a ...
1
vote
1
answer
1k
views
tvOS UISearchController - how avoid automatic SearchBar & Keyboard hidden behavior when scroll?
In my app I implemented UISearchController following the example project UIKitCatalog provided for Apple, here the code:
/*
A method demonstrating how to encapsulate a `...