keyboard

Why does `ioctl(fd, EVIOCGRAB, 1)` cause key spam sometimes?

一笑奈何 提交于 2019-12-22 00:27:00
问题 I'm trying to write my own "keyboard driver" (without actually writing a kernel module), by grabbing the keyboard at what I assume is the lowest level of abstraction in userland: /dev/input/event* . The following code does the grabbing, provided you change the first ocurrence of ioctl(fd, EVIOCGRAB, UNGRAB) to ioctl(fd, EVIOCGRAB, GRAB) . // gcc main.c -o main #include <stdio.h> #include <unistd.h> #include <string.h> #include <linux/input.h> #include <fcntl.h> #include <errno.h> #define EXIT

QML Virtual Keyboard Add New Layout

可紊 提交于 2019-12-22 00:23:57
问题 I use qt qml 5.7 on Yocto project for raspberry pi. My project need virtual keyboard for Turkish language. QT Virtual Keyboard has no support Turkish language so i want to create my custom layout. I add my project example layout codes from here as name "myCustomLayout.qml". And I run my virtual keyboard display function by following codes. import QtQuick 2.5 import QtQuick.VirtualKeyboard 2.1 import QtQuick.Controls 2.0 InputPanel { id: inputPanel visible: Qt.inputMethod.visible height:main

Android: InputMethodService how to set a view with setExtractView(View view)?

梦想与她 提交于 2019-12-21 21:22:11
问题 I'm trying to provide a modified view for a custom Android keyboard in fullscreen mode. Therefor I'm trying to replace the extract view. In the documentation I found the following method: setExtractView(View view) - so I assume it's a public API call. However, as you can see from the Android OS source code (snipped pasted below) it lets me only access a view that has view items with id's within the com.android.internal.* space. Otherwise I will, of course, get a NullPointerException. public

Soft keyboard hide EditText in lollipop version

限于喜欢 提交于 2019-12-21 20:58:39
问题 I have a layout which contain RelativeLayout as Root layout,Relative layoout contain ListView at Top and one Edittext align at the bottom of relative layout. In Pre lollipop version devices whenever soft keyboard open Edittext pushed up and I am able to see the Editext. But in lollipop soft keyboard hide the Editext. I have already set android:windowSoftInputMode="adjustPan|adjustResize" in manifest file. Please help me 回答1: try to give fitsSystemWindows in your main layout( for lollipop

NullPointerException when opening HID Device using Java HID API (Managing Inputs from Multiple Keyboards)

做~自己de王妃 提交于 2019-12-21 20:56:46
问题 This question is a possible duplicate of this and this thread. But since none of them have provided a clear solution for my problem, I'm asking it again. My required task is to connect 2 Keyboards via USB and then manage the inputs of each Keyboard separately through a Java Application. This requirement has been answered into some progress in the first thread I have mentioned above by @nan but his solution did not work accurately for me. You can find his blog post on his solution for this

C - Read Directly From the Keyboard Buffer

只谈情不闲聊 提交于 2019-12-21 20:16:05
问题 This is a question in the C programming language. How do I directly read the data in the keyboard buffer? I want to directly access the data and store it in a variable. Of what data type should the variable be? I need it for an operating system our institute is currently developing. It's called ICS-OS and I am not quite sure about the specifics. It runs on x86, 32-bit machines (we run it on QEMU in a Linux box). Here is the link for the Google Code http://code.google.com/p/ics-os/. I hope

Softkeyboard event Listener in Android

末鹿安然 提交于 2019-12-21 17:39:43
问题 I'm making android phonegap application. I set editText under the CordovaWebView. I want to get keyboard show / hide event. Try to calculate view height , but fail. When editText has focus , keyboard is shown. But CordovaWebView goes up , and view size not change. So I can't get keyboard shown event. Why view goes up ? here is the partial of my code. MainActivity onCreateMethod() int layoutId = R.layout.blank; layout = new LinearLayout(this); setContentView(layoutId); layout.setOrientation

Open and close Windows 8 touch keyboard tabtip under desktop

放肆的年华 提交于 2019-12-21 17:06:16
问题 I need to close the tabtip keyboard from a program under Windows 8 (desktop winform .NET). I found to open it when need, run TabTip.exe to display the Windows 8 Touch keyboard, but i can't close it when i need! I tried to kill the process with process.kill but it doesn't work, someone has an idea how to do it? Regards Jean-claude 回答1: Try the below- Replace Osk with TabTip Public Class Form1 Private oskProcess As Process Private Sub openButton_Click(ByVal sender As System.Object, ByVal e As

Are new characters possible with a custom keyboard in iOS 8?

跟風遠走 提交于 2019-12-21 16:51:47
问题 In iOS 8, Apple has given developers the ability to create custom keyboards. In the documentation, Apple states that you should create a new keyboard if you want to support a language that iOS does not currently support. Therefore, if you are able to support new languages, are you able to create a keyboard that contains new emoji characters? I would assume that by Apple stating that you can support a new language, they would expect there to be custom characters involved. If including custom

How to fix keyboard issues with Cordova 3.1 on iOS?

你离开我真会死。 提交于 2019-12-21 16:49:18
问题 I just tested Cordova 3.1 with a sample iOS app and experienced several keyboard issues. App settings: Xcode 5 Status bar is hidden Landscape mode config.xml Issues: All versions: when focus on an input field then whole view is pushed up including navbar. iOS5/6: tap on an input field to open keyboard, then a black gap is briefly displayed at top of screen before keyboard pushes whole view up (is it status bar?) iOS7: there is no black gap like #2 issue, but there are other issues: I still