keyboard

Android soft keyboard show numbers view first

佐手、 提交于 2019-12-23 15:19:44
问题 I have a login screen on my app which accepts a CPF as login (CPF is an unique number identification that every Brazilian citizen have, e.g: 10546819546), but it can also accept passport numbers as the login, and these may have letters on it. My problem is that I want the keyboard, when it pops up, to show to number/symbols "view" before the default alphabet one. Changing the inputMethod to phone or number does not solve my problem, because as I said, the login may contain letters. I've seen

IOS 8 Keyboard Height And Key Effects

点点圈 提交于 2019-12-23 13:21:17
问题 I want to change the height of keyboard in XCode 6 Beta 5. I searched code and found that by using NSLayoutConstraint , we can change the height of it but not work for me. This is my code: CGFloat _expandedHeight = 500; NSLayoutConstraint *_heightConstraint = [NSLayoutConstraint constraintWithItem: self.view attribute: NSLayoutAttributeHeight relatedBy: NSLayoutRelationEqual toItem: nil attribute: NSLayoutAttributeNotAnAttribute multiplier: 0.0 constant: _expandedHeight]; [self.view

Dismiss keyboard through return key with swift

北城以北 提交于 2019-12-23 13:08:23
问题 I am a beginner programmer working with Swift. I have been working on a to-do list application. I am trying to dismiss a keyboard through the return key. I have tried the 'self.view.endEditing(true)' and the 'resignFirstResponder()' methods, but neither of them are working. Here is my code: (I am using a tab-application) class SecondViewController: UIViewController, UITextFieldDelegate { @IBOutlet var text: UITextField! @IBAction func addItem(sender: AnyObject) { toDoList.append(text.text)

how to disable keyboard events on an input text box in javascript

[亡魂溺海] 提交于 2019-12-23 12:57:22
问题 I have an image, and I use keyboards to apply some manipulations on it (translation, zoom ..). Above the image, I have an input text box which shows the number of the image in the data set. How can I disable the image manipulation when the cursor is on the text box? (ie disable the behavior that I assigned to each keyboard). I would also like to still be able to edit the text box(to move to image number xx for example). From what I read here IPad Disable keyevent on input, I think the

How can i programmatically manipulate the Windows 7 on-screen keyboard osk: Move, Resize, Remove Titlebar/Caption

你。 提交于 2019-12-23 12:53:39
问题 I'm working on a WPF app where i want to display the built-in windows 7 onscreen keyboard in a 'always there' manner. So i want to: Move it to a particular location Set it to a certain width and height Remove the caption/titlebar so the user can't move it around or close it Remove that abilty to resize it (or any other user adjustments for that matter). I've tried all the typical API functions (MoveWindow, SetWindowPos, SetWindowLong, etc...) but it refuses to do anything. Code currently

Windows IME: custom Korean virtual keyboard

夙愿已清 提交于 2019-12-23 12:47:58
问题 I have problem with Korean Windows IME. I am designing a virtual (screen/software) keyboard for a piece of embedded software. I rely on Windows IME and it seemed to work fine for Japanese and Chinese languages. It also works perfectly with Korean if I am using a physical keyboard. But when I click a virtual keyboard button, the mouse events seem to interfere with IME and basically just cancel the composition. WM_IME_ENDCOMPOSITION message fires every time the mouse button is clicked. As a

How do you change the return key text in Mobile Safari keyboard without the form tag?

对着背影说爱祢 提交于 2019-12-23 12:38:44
问题 I would like to change the the "return" button text on the Mobile Safari keyboard when my input element is focused. I know you can do this: <form action="somewebsite.com"> <input id='SearchTextBox' type="search"/> <input id='SearchButton' type="button" value="Search" /> </form> But I don't want the form tag because the search is ajaxian (I don't want to reload the page). Does anyone know if this is possible? 回答1: Heh, should have thought of this (coworker solved). Just cancel the form

How to keep all fields and texts visible while the soft keyboard is shown

一笑奈何 提交于 2019-12-23 12:00:49
问题 I'm working in this login screen, and I want all fields, texts and buttons to resize when the IME is shown. I've already used the android:windowSoftInputMode="adjustResize" on androidManifest.xml, but i'm still getting some elements underneath others. It wouldn't matter if the TextView "Cadastre Agora" (id= cadastrar) remains covered by the virtual keyboard. But, I want at least EditTexts, their TextViews and the button to be visible. I found this unanswered question that could be an

Using a UIDatePicker instead of Keyboard for UITextField Issues

和自甴很熟 提交于 2019-12-23 11:51:30
问题 Hi I am trying to display a UIDatePicker instead of a keyboard whenever a UITextField is tapped so that the user can give a start and end time for an event. My code works but not well and not the way I want it to. My first issue is that whenever you tap on one of the UITextField the UIDatePicker only come up the second time the UITextField is tapped. Otherwise it shows the original keyboard. My second issue is that whenever the UIDatePicker is edited it only changes the UITextField whenever

Multiple Raw Input Window Sinks

僤鯓⒐⒋嵵緔 提交于 2019-12-23 11:47:46
问题 I have a message-only window (ATL::CWindowImpl) that registers itself for raw input using the RIDEV_INPUTSINK flag, meaning it gets all input regardless of whether the window is the foreground window. This works great when there's only one instance of that window. However, when I create more than 1 instance of my window, only one receives the WM_INPUT messages (I'm currently creating two, and only the second one to be created gets the messages). RegisterRawInputDevices (using RIDEV_INPUTSINK