keyboard

Hide inputAccessoryView if hardware keyboard is connected

∥☆過路亽.° 提交于 2019-12-22 05:28:07
问题 Similar to this question: iPad: Detecting External Keyboard, I am developing an iPad app that is using text fields with a custom inputAccessoryView to provide additional functionality for the virtual keyboard. However, if a hardware keyboard (e.g. bluetooth keyboard) is connected to the device, the software keyboard is not shown as expected, but for some reason the inputAccessoryView is still visible at the bottom of the screen. Additionally, this seems to cause firing the

Complete keyboard block in IntelliJ 13

﹥>﹥吖頭↗ 提交于 2019-12-22 05:19:15
问题 Sometimes when running IntelliJ it completely blocks all keyboard inputs in the program. E.g. I can click around a document with the mouse, I can even right click + paste. I cannot, however write anything through the keyboard or navigate with the arrows inside a document or between documents for that matter. The only keyboard related actions that work seem to be system related; alt + tab, ctrl + alt + delete, caps lock etc. also when tabbing to another window the keyboard works fine, so it is

What data can a HID device receive?

旧巷老猫 提交于 2019-12-22 04:58:16
问题 I am designing a USB keyboard with special capabilities. What information can such a HID device receive from the host? Can I via USB: Read data from a form on the screen? Find out what OS the user is on? Find out if there's been an error message? Even 'know' what's going on visually on the screen, i.e. what program is selected or whether the program is windowed or fullscreen? Thank you! 回答1: The device can't get any of this information from a standard driver that the operating system supplies

F10 Key is not caught

限于喜欢 提交于 2019-12-22 04:51:40
问题 I have a Windows.Form and there overriden ProcessCmdKey. However, this works with all of the F-Keys except for F10 . I am trying to search for the reason why ProcessCmdKey is not called when I press F10 on my Form. Can someone please give me a tip as to how I can find the cause? Best Regards, Thomas 回答1: Windows treats F10 differently. An explanation is given in the "Remarks" section here on MSDN 回答2: I just tested this code with Windows Forms on .NET 4 and I got the message box as expected.

.net difference between right shift and left shift keys

佐手、 提交于 2019-12-22 04:48:10
问题 I am currently working on an application which requires different behaviour based on whether the user presses the right or left shift key (RShiftKey, LShiftKey), however when either of these keys is pressed I only see ShiftKey | Shift. Is there something wrong with my keyboard? (laptop) do I need a new keyboard driver/keyboard in order to send the different key commands maybe... This is a pretty massive problem at the moment, as there is no way of testing that the code works (apart from unit

Find out the character pressed key

雨燕双飞 提交于 2019-12-22 04:43:21
问题 If I add a listener to KeyboardEvent.KEY_DOWN, I can find out the keyCode and the charCode. The keyCode maps to a different character depending on the keyboard. The charCode is just as useless, according to the help: The character code values are English keyboard values. For example, if you press Shift+3, charCode is # on a Japanese keyboard, just as it is on an English keyboard. So, how can I find out which character the user pressed? 回答1: You left out a pretty important part of the quote or

How to open Keyboard on Button click in android?

泄露秘密 提交于 2019-12-22 04:21:26
问题 How can I open Keyboard on Button click in android? What I want to be like this: 回答1: Please try this InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0); 回答2: InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, flags) an example may be: InputMethodManager imm = (InputMethodManager) RouteMapActivity.this .getSystemService

How to open Keyboard on Button click in android?

ε祈祈猫儿з 提交于 2019-12-22 04:21:01
问题 How can I open Keyboard on Button click in android? What I want to be like this: 回答1: Please try this InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0); 回答2: InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, flags) an example may be: InputMethodManager imm = (InputMethodManager) RouteMapActivity.this .getSystemService

What's the exact difference between Keys.Control/Shift and Keys.ControlKey/ShiftKey? [duplicate]

≯℡__Kan透↙ 提交于 2019-12-22 03:58:26
问题 This question already has answers here : Difference between Keys.Shift and Keys.ShiftKey (2 answers) Closed 5 years ago . What's the exact difference between Keys.Control and Keys.ControlKey/Keys.Shift and Keys.ShiftKey in System.Windows.Forms? I've googled it but nothing specific came up, and it doesn't seem to be documented on MSDN either. Personally, I always use Keys.Control/Keys.Shift, because it works fine. Edit: After reading KreepN's answer, I thought if you never have to use Control

Android soft keyboard not working

℡╲_俬逩灬. 提交于 2019-12-22 03:15:31
问题 I'm having a weird problem with effecting the soft keyboard from working properly. My app does not have a single EditText view in it, or using the keyboard in some way, but somehow after installing my app on several devices, working with it and then going back to use the device the soft keyboard stop working, and it's driving my crazy... What the user sees is that when he/she clicks on a character button in the soft keyboard nothing is shown in the EditText for every app. Like I said the