keyboard

Disable Hardware Keyboard for iOS Simulator using UIAutomation

蓝咒 提交于 2019-12-21 12:59:10
问题 I'm doing some automated tests in the iOS simulator using UIAutomation. In Xcode 6, the iOS simulator's keyboard behavior changed to be similar to a real device, and now there is a menu item to connect/disconnect your Mac's keyboard to the simulator: Hardware > Keyboard > Connect Hardware Keyboard . I don't mind this, but what happens when your Mac's keyboard is connected is that the simulator will no longer show the software keyboard. When you run a test script with UIAutomation, calls like

iOS 8 custom keyboard crash when debugging

限于喜欢 提交于 2019-12-21 12:27:08
问题 Issue Most times, when I try to debug my custom keyboard extension, I receive the following error and then the keyboard disappears (presumably crashes, so the system removes it from screen and replaces it with the standard keyboard) plugin com.db.Trype.TrypeKeyboard interrupted (Note: Trype is the name of my keyboard.) Process I am debugging the keyboard the following way: I have the keyboard extension as a target. I've modified the TrypeKeyboard scheme to run my app executable on launch. The

Android: how to add custom soft keyboard when form field is selected in WebView

流过昼夜 提交于 2019-12-21 12:22:07
问题 I am using WebView to present UI. Is there any way that I can trigger custom soft keyboard when input text form field is selected? 回答1: I just encounter a similar problem with the android WebView. When I select, in touch mode, a text input field, it does not pop-up the virtual keyboard whereas with the trackball it works fine. I just found there: http://groups.google.com/group/android-developers/browse_thread/thread/e52109afda599301/b4cbc16e4e9e8e0d (last message from alien9) that calling

Change the key being pressed with C#

ぐ巨炮叔叔 提交于 2019-12-21 12:00:14
问题 Hey, I'm trying to write a program in C# that will track the pressing of certain keys (using a keyboard hook), and send different ones instead. For instance, when I press the A key it will instead send the Q key. I used http://www.codeproject.com/KB/cs/CSLLKeyboardHook.aspx this for my hooks and tried to use the SendKeys function, but I get an exception about the garbage collector destroying some object inside the hook class. 回答1: First you need to hook up the keys. With this class you can

USB interface barcode scanners

徘徊边缘 提交于 2019-12-21 11:40:12
问题 Not exactly a programming question, but close. I'll try my luck anyway. The keyboard wedge barcode scanner inserts the translation device between the reader and the keyboard. Data sent through a wedge appears as if it was typed into the computer, while the keyboard itself remains fully functional . Because a computer using a keyboard wedge can't tell the difference between data that is entered by a scanning device, or data that is entered by keyboard typing, a wedge can be used to easily add

Why does Android webview show “Next” in keyboard only if type=“number” and not with type=“text”?

大兔子大兔子 提交于 2019-12-21 09:24:27
问题 I have a form with a few input fields. So I want to navigate between the fields with the next button but that just works when the input field type is "number". With type="text" it doesn't! Is this a bug in Android 3.2.1? My input fields are like that: <input type="text" name="..." .... /> --> keyboard "Go" <input type="text" name="..." .... /> --> keyboard "Go" <input type="number" name="..." .... /> --> here it shows the "Next" button on the keyboard <input type="text" name="..." .... /> -->

PopupWindow above Virtual keyboard

孤街醉人 提交于 2019-12-21 07:06:46
问题 I have a PopupWindow that is shown when a user is typing in an EditText. This popup offers him some suggestions. My problem is that when the Popup is shown, a part of it is displayed over the Keyboard on the screen, preventing the user to continue typing. Does anyone know why of this behaviour and how could I fix it? 回答1: To have your popupwindow behind the softkeyboard just set this line: popupWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED); and also popupWindow.setFocusable(false

iOS 8 3rd party keyboards don't register javascript/jQuery keyup, keypress, keydown etc

风流意气都作罢 提交于 2019-12-21 06:51:12
问题 When using a 3rd party keyboard like Swiftkey javascript events like keypress don't register. For example Google maps autocomplete won't work https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete Seems like an iOS bug but any ideas on how I can get around this? 回答1: Would this work? jQuery('#text_box').on('input propertychange paste', function() { // text has changed... }); JSFIDDLE 回答2: You can just manually fire keypress events. $textBox = $('#text_box') /

Custom Keyboard on iPhone

断了今生、忘了曾经 提交于 2019-12-21 06:38:15
问题 What's the easiest way to implement a custom keyboard on the iPhone? I basically want an action sheet that keeps part of my interface visible, but I want to load my own view into it, preferably via nib. I've been looking into modal views, but I'm getting the feeling I'm going in the wrong direction. 回答1: Just create a view, add it to your window, and resize the rest of the views in the window to accommodate. 来源: https://stackoverflow.com/questions/789682/custom-keyboard-on-iphone

Keep iPhone keyboard-aligned toolbar visible through first responder change?

痴心易碎 提交于 2019-12-21 05:48:04
问题 I'm using the method described by Josh in this question to add a toolbar to the top of the iPhone's keyboard. Basically, the idea is: Add the view controller as an observer for the notifications UIKeyboardWillShowNotification and UIKeyboardWillHideNotification in its initialization method Whenever those notifications are posted, animate a toolbar onto/off of the screen along with the keyboard I also have multiple UITextFields on the screen, all of which become the first responder when