virtual-keyboard

Simulate keypress in java to write user inputs to another application

妖精的绣舞 提交于 2019-12-12 00:34:26
问题 I am developing a virtual keyboard application. Everything works fine except that what ever i write is written into the present application only not the one that is running behind. I fell this is because ROBOT class in java only works for the application context that creates it. Is there a work around for this? Here is the code, i am trying to write ls in the terminal that is behind my java application: Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_ALT); robot.keyPress(KeyEvent.VK_TAB

Get Soft Keyboard Height in fragment

一世执手 提交于 2019-12-11 08:53:05
问题 I have a fragment that contains 20+ rows for adding personal info. The exact number of rows depends of how much an employer wants from the users of the app. If the number of rows I need to show is bigger than the available space, with soft keyboard showing, I have to move the other rows to the next screen, and so on. This was my gameplan: Check how high my rows are + margins (easy, hardcoded) Check the total screen height Check the soft keyboard height That would give me enough info to

Why doesn't the virtual keyboard go away?

匆匆过客 提交于 2019-12-10 13:18:53
问题 I have a pretty simple screen with a couple of EditText widgets and a button. In the emulator, when I click on the EditText widget, a virtual keyboard comes up. However, I can't seem to get rid of it. Clicking on an empty space on the screen does not make it go away. Only clicking the virtual Return key or the hardware Back button makes it disappear. I don't have a real Android phone handy, so is this an emulator only thing or will it be like this on the actual device. If it is, what can I do

UWP VirtualKeyboard shows NumericPin layout in simple textbox

杀马特。学长 韩版系。学妹 提交于 2019-12-08 12:22:39
问题 I have multiple textbox controls in different views in my app. For each textbox inputScope is set to default or AlphaNumeric. In some scenarious when i open a ContentDialog and close it , KeyboardLayout becomes NumericPic layout for all textboxes, even if i click on windows taskbar keyboard button. NumericPic is not set anywhere, already checked in all code. Does someone knows anything about this ? Or maybe is a windows issue ? Checked on Lenovo Tablet , Windows 10 Home Single Language v 1607

Customize jQuery On-Screen Keyboard

て烟熏妆下的殇ゞ 提交于 2019-12-08 10:03:07
问题 I need to display a virtual keyboard in some pages on my web-app, so I found this beautiful jQuery On-Screen Keyboard: http://www.jquery4u.com/demos/onscreenkeyboard/ You can download it from Github: https://github.com/sdeering/onscreenkeyboard/archive/master.zip I need help to customize it, initially I thought that change CSS will do but turn out it need to be changed on some Jquery functions, I tried removing and changing the order of some functions but didn't work, I dont know Jquery so I

TTouchKeyboard: send keystroke to other program?

喜你入骨 提交于 2019-12-07 05:56:55
问题 How do I use TTouchKeyboard in Delphi, so it could send keystrokes to other program. For example, I want to type password in a browser using TTouchKeyboard component. I have no idea how make the browser stay focus while I'm clicking on my keyboard. 回答1: TTouchKeyboard sends the keys to the current control focused: so if you have a TEdit with the focus , the TEdit will receive the key... You can create a form which contains the TTouchKeyboard and add this procedure: protected procedure

Virtual keyboard for chromium in kiosk mode (fullscreen)

南笙酒味 提交于 2019-12-05 20:05:39
问题 For a kiosk application on a touch screen device we use a web app running inside chromium browser in kiosk mode ( --kiosk ), which implies full screen. We are now seeking a solution to provide users with a virtual keyboard. What we have tried: Chrome-Extensions: There are a lot but all of them seem to fail as soon as an input field is inside an iframe, which makes them unusable for our scenario Linux virtual keyboards ( We are on Ubuntu 14.04 / Openbox window manager) : Florence, Onboard,

TTouchKeyboard: send keystroke to other program?

拥有回忆 提交于 2019-12-05 09:13:46
How do I use TTouchKeyboard in Delphi, so it could send keystrokes to other program. For example, I want to type password in a browser using TTouchKeyboard component. I have no idea how make the browser stay focus while I'm clicking on my keyboard. TTouchKeyboard sends the keys to the current control focused: so if you have a TEdit with the focus , the TEdit will receive the key... You can create a form which contains the TTouchKeyboard and add this procedure: protected procedure CreateParams(var Params: TCreateParams); override; ... procedure TForm1.CreateParams(var Params: TCreateParams);

C++ simulate pressing of equal sign (=) and question mark (?)

痴心易碎 提交于 2019-12-02 16:36:50
问题 Having some problems with simulating a keypress of equal sign (=) and question mark (?). I figured if there's no virtual key code for those two, I should combine key presses and releases as this guy did with Ctrl-V: http://batchloaf.wordpress.com/2012/10/18/simulating-a-ctrl-v-keystroke-in-win32-c-or-c-using-sendinput/ my code for "=" (SHIFT + "+"): INPUT ip; ip.type = INPUT_KEYBOARD; ip.ki.wScan = 0; // hardware scan code for key ip.ki.time = 0; ip.ki.dwExtraInfo = 0; ip.ki.wVk = VK_LSHIFT;

Close virtual keyboard on button press

廉价感情. 提交于 2019-12-02 13:52:04
I have an Activity with an EditText , a button and a ListView . The purpose is to type a search screen in the EditText , press the button and have the search results populate this list. This is all working perfectly, but the virtual keyboard is behaving strange. If I click the EditText , I get the virtual keyboard. If I click the "Done" button on the virtual keyboard, it goes away. However, if I click my search button before clicking "Done" on the virtual keyboard, the virtual keyboard stays and I can't get rid of it. Clicking the "Done" button does not close the keyboard. It changes the "Done