keyboard

force dialog input to require fullscreen ime soft keyboard in landscape

岁酱吖の 提交于 2019-12-24 10:05:49
问题 I have a dialog box with an input, I have to automatically pop up the soft keyboard, current code: final EditText input = new EditText(this); final AlertDialog dialog = new AlertDialog.Builder(ScActivity.this) .setMessage(message) .setView(input).setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow

Handle KeyDown during a drag drop. Or keydown event not workign

喜欢而已 提交于 2019-12-24 10:03:43
问题 I need to handle event "KeyDown" while user drag and drop is working. Example of use. When user click "alt" some image under cursor will be changed and user can drop additional item data. But KeyDown not working at all! Only esc button!! Please help. I really need to determine event. P.s. I tried this code: [DllImport("user32.dll")] private static extern short GetKeyState(Keys key); But i can determine clicked button only on mouse move. But i really need key down event to determine that alt

Clearing the keyboard buffer in Ada

荒凉一梦 提交于 2019-12-24 09:58:42
问题 I wrote a function to clear the keyboard buffer, since I think I am having leftover input after a get, but it's just taking input forever. here is the get(String(1..10) --getString10-- procedure getString10(s : in out string10) is Last: Integer; begin s := (others => ' '); Get_Line(S, Last); end getString10; and here is the flush I made, pretty much copied from a wiki on clearing keyboard buffers --flush-- procedure flush is char : character; more : boolean; begin loop get_immediate(char,

Turtle-graphics keypress event not repeating

寵の児 提交于 2019-12-24 09:37:27
问题 The following code behaves differently in different environments. On my Windows machine (Windows 10, Python 3.6), each keypress creates a response and then nothing happens until I press a key again. On "Python Trinkets" (https://trinket.io/python) I don't need to repeat the keypress, as holding the key down creates repeat events. I know that the Trinket version is a JS implementation, but does that explain the difference entirely? Would the program behave the same on Linux or OS? More

How to get notified of textbox focus?

半腔热情 提交于 2019-12-24 09:32:19
问题 Using a Windows 7 touch device Windows shows this little touch-keyboard indicator (tabing this will bring up the touch on screen keyboard) when you tab/focus a textbox or kind of input field (Notepad etc.). I want to write an application that gets notified when exactly that happens, a textbox (etc.) gets focused (no matter which application). Are applications informed about focusing in other applications, do I need to hook something? Is there a way in doing so in c++? 回答1: I believe the

iOS 5 issues: Disappearing keyboard when pulling up a UITextView

别来无恙 提交于 2019-12-24 09:00:08
问题 I have a nice little app on the app store that does pretty well for itself. Life was great until iOS 5 came to town. Now, I have a number of issues with my app that I have no way of fixing because I have no clue what is going on, because I feel that they are iOS 5 issues, not mine. Was there an iOS 5 conversion manual I missed? Or did they just change everything for fun, and want us to figure out where all the easter eggs were? Here is an issue I am experiencing (that I have wasted so much

Android custom keyboard?

江枫思渺然 提交于 2019-12-24 08:39:08
问题 Hello I am working on Custom KEYBOARD for my app. i.e <Keyboard android:keyWidth="%10p" android:keyHeight="50px" android:horizontalGap="2px" android:verticalGap="2px" > <Row android:keyWidth="32px" > <Key android:keyLabel="A" /> ... </Row> ... </Keyboard> I want to know is there any method or android tag available for set invisible or visible the keyboard board key . like android:visibility="gone" or setVisibility(View.GONE) for Keyboard layout. Cause in my app there are many variation in

UITextField becomeFirstResponder works only once

社会主义新天地 提交于 2019-12-24 08:01:13
问题 In my app, there is the ability for the user to input their name. A UITextField is added to the view and becomeFirstResponder is called. In the textFieldShouldReturn method, resignFirstResponder is called. Then in textFieldShouldEndEditing, the UITextField is removed from the view. This all works fine, but the problem is that when the user tries to input their name a second time, the UITextField shows but keyboard does not. I have tried lots of things, like moving around become/resign

Objective-C on macOS - get keyDown: for Shift+Tab in NSView

ⅰ亾dé卋堺 提交于 2019-12-24 07:18:49
问题 I have an application that processes keystrokes via keyDown. This works well so far, with the exception of two problems (I'll post/ask the other later). The problem here is the Shift+Tab combo. I would like to process it myself, but as explained in the Mac OS keyboard event doc, it is used to move the focus forward. I tried capturing it under -(BOOL)performKeyEquivalent:(NSEvent *)nsevent { } where I do get an event for it, returning TRUE or FALSE but it still does not appear in keyDown: I

How do I keep existing values from shifting to the right when entering keypresses into a jQuery Masked Input?

谁说我不能喝 提交于 2019-12-24 07:17:30
问题 I have a text box I'm using as a timer display "hh:mm:ss" When I select the box and press a number, it inserts the number at the cursor location, but instead of replacing the value at that position, it shifts all existing values over. For example, the timer text box reads "01:00:35" and I replace the first minute position with 1, the timer text box will then read "01:10:03." Anybody know how to force the text box to replace, instead of insert, at the cursor position? I've tried intercepting