I have an external scanner which basically emulates key strokes if the keyboard is active. I tested and whenever the textfield focus is on, it emulates the key strokes. But i don't want to show the keyboard to user.
Can i get the key strokes without showing the keyboard to user? or is it possible to have an off screen keyboard active all time throughout the application?
Related
Is it possible to intercept the trackpad events from the magic keyboard (with trackpad) in an iOS app and process them myself while hiding the pointer and not sending these events to the UI, or is that not possible?
Think about a game for instance where the user would move their finger around on the trackpad to move a character around on screen, but you wouldn't want to show the pointer circle and the location on the screen doesn't matter or if/where they click, you are just using the change in position as they move their finger on the trackpad.
Thanks
I have a company app (not on AppStore) that I'm attempting to use with a wired barcode scanner, but also need the onscreen keyboard for manual entry. The scanner itself does not have any "show/hide keyboard" button. I am connecting the scanner with an Apple Lighting to USB3 Adapter, which works great - it connects as an external keyboard.
There are flows in the app that require a user to enter text when a barcode is not available to scan, e.g. login flow. How can I programmatically show the onscreen keyboard for these flows on an iPhone or iPod?
I have used bluetooth scanners that have a button to show/hide the onscreen keyboard. Is it possible to simulate this functionality in code?
The last resort may be to create my own onscreen "keyboard" that I can show and hide at will.
I need to create UIButton above UIWebView in iOS SDK, when user press this button it simulates UIWebView a physical keyboard key pressed, in the best situation, arrow keys.
I'm creating a game where the players can use various controllers and keyboards to play. This game is for desktop and it's not used to be played on an internet browser.
Issue: Currently, I am able to detect the key pressed from all the keyboards connected, but there is no way to detect which keyboard pressed it. So in the end result, even if there are several keyboards connected, no one can use the same buttons since pressing a key on a keyboard is like pressing this key on every keyboard.
Looking for: A way to get an ID from the USB device connected that pressed the key so I can track which keyboard is pressing a button or any other way that is able to find out which keyboard has pressed a key.
In my app I am having a customer info form on which there are a number of text fields I have used, now when a user edits any field I need to move whole view up so that the editing text field won't get under iPad's internal keyboard and this is working fine.
Now the client wants to use external Bluetooth keyboard for filling this form. Once this external keyboard is connected with iPad then in the app when editing any text field won't show internal keyboard as the external is connected and in this case whole view needs to be on the page and no need to move it up.
But when I edit text field it still goes up without showing internal keyboard on the screen and this leaves half of the screen blank as it moves whole view up.
For this I have tried some ways like enabling internal keyboard show/hide notifications but these notification only gets called when external keyboard is not connected and this is not helping me.
Also have tried with ExternalAccessory framework, but it wont detect the bluetooth connected keyboard also tried with EADemo to detect external keyboard and its not detecting external keyboard but it detects credit card swiper connected trough dock.
If anyone here has gone through this functionality or knows anything related with this, then please let me know.
#SpySudhir --
Logic A:
have a bool variable in some file which will return yes/no value when the keyboard is external or internal.
On the basis of the bool value returned call the animation function.
Logic B:
Listen to the keyboard notification using NSNotificationCenter.
Notifications like will,show,hide notification put an NSLog over their and see which one of them is getting called.
If external board is connected the willShow method does not gets called. so in this case can we can do some work around and set the bool value to no or we can have a counter and check it every time if its value is increased by one or is same something like this.
You should not move the view up when field gets focus - you should only move the view up as a response to a UIKeyboardDidShowNotification. The system takes care of the rest for you.