keyboard

Android 8.1 (API 27) - Keyboard not showing in Kiosk-mode app after reboot

谁说胖子不能爱 提交于 2019-12-25 03:43:20
问题 I have made a Kiosk-mode app that works well after install (is based on Activity.startLockTask()). After re-booting the device (a Nexus 5X running Android 8.1), I cannot use the app because the keyboard cannot be made to appear on screen. I give the command to reboot while the app is active (in full screen and set as device launcher) in order to test if it remains in Kiosk mode after restart. Result is that it remains in Kiosk mode, but the soft keyboard cannot be activated by the user. Any

InputType of EditText in Android

有些话、适合烂在心里 提交于 2019-12-25 03:38:14
问题 I want to use default keyboard for, but want also that it occurs with numeric input type. Does anybody know how to do that? Maybe there is a way to press '?123'-key programmatically? I've took a look to list of inputTypes, but none of them seems to be the proper one for my need. Thank you 回答1: You can use either of these 3: For example: android:inputType="numberDecimal" 回答2: set in ur code inputType = "number" 来源: https://stackoverflow.com/questions/4931494/inputtype-of-edittext-in-android

Represent an special keyboard key in the current culture?

别等时光非礼了梦想. 提交于 2019-12-25 02:45:10
问题 Scenario I've written a simple keylogger using the modern RawInput technique registering the desired device for event/data interception. About Raw Input Then, I'm using basically all these Windows API member definitions: Raw Input Functions Raw Input Structures Problem/Question I'm using a non-English keyboard with a non-English O.S , then, my problem begins when I try to parse an special key of this keyboard like a ñ / Ñ character which is recognized as an System.Windows.Forms.Keys.OemTilde

Mouse click simulates keyboard key in JavaScript

和自甴很熟 提交于 2019-12-25 02:41:21
问题 I have situation that in application (HTML/XUL) there are key bindings for some function keys (F5, F7 & F9) in order to communicate with some other application. Now I have to make touch-based interface for same app, without keyboard and advanced touch events. All touch clicks are actually same as mouse clicks and I need to have 3 buttons/links that behave same as F5, F7 & F9 keys. Don't ask for reasons, all I can say is that I need to keep that key bindings. Can I assign mouse click on link

My JFrame is not changing when key pressed

坚强是说给别人听的谎言 提交于 2019-12-25 02:33:19
问题 I have a Jframe set on a timer and im trying to change one of the pictures by pressing the down key (special code 40), yet nothing is happening. import javax.swing.JFrame; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.*; import java.awt.image.BufferedImage; public class MenuScreen extends JFrame { private static JFrame frame; GameKeyboard GK; boolean gamePlay = false; boolean gameQuit = false; boolean gameTwoPlayer = false;

Trigger a keyboard shortcut through mouse click event using jQuery

一个人想着一个人 提交于 2019-12-25 02:27:44
问题 $(document).ready(function(){ $(document).on( 'keypress', 'body', function( e ){ var code = e.keyCode || e.which; if( code = 110 ) { console.log( 'Successfully triggered ALT+N' ); } }); $(document).on( 'click', '#copy', function( ){ var e = $.Event('keypress'); e.which = 110; // Character 'A' console.log( e ); $('body').trigger(e); }); }); The above piece of code successfully triggers the keyboard shortcut Alt + N on my document. Alt + N keyboard shortcut does a particular action on my web

Dismiss keyboard of TextField programmatically

落花浮王杯 提交于 2019-12-25 02:23:03
问题 I know how to use the following method by Interface Builder. -(void)dismissKeyboard { [testTextField resignFirstResponder]; } In this way, when I touch the area outside the keyboard or tap the "return", the keyboard will dismiss. But I don't know how to make it all by code. Please teach me , thanks. Here's .h #import <UIKit/UIKit.h> @interface SecondViewController : UIViewController { UITextField *testTextField; } @property (nonatomic,retain) UITextField *testTextField; @end here's .m #import

Threads and Tkinter not working together

大憨熊 提交于 2019-12-25 02:15:55
问题 Trying to practice Tkinter, Pyautogui and threading with a simple (or so I thought) auto clicker. It is supposed to open up a menu (check), then a choice of buttons (check), it opens up another window (check), and when you press F7 it starts clicking (not working) This works fine without Tkinter Here is code: from tkinter import * from pyautogui import * from time import * from threading import Thread as th import keyboard root = Tk() key_loop = 1 k = "" root.geometry("150x500") def detect

How allow a specific character in Android numerical keyboard?

余生长醉 提交于 2019-12-25 02:15:20
问题 I'm developing an science app, and I have an EditText in wich I must enter an input numeric value, so the inputType is "number|numberSigned|numberDecimal", but the problem is when I want input a scientific notation number like "45.6E05", I can't input "E" character because of EditText's InputType. How can to allow "E" character and only to show a numerical keyboard when the EditText is focused? 回答1: There is no way to show the numerical keyboard with an extra letter E on it, two ways around

Hide Keyboard in objective c

心不动则不痛 提交于 2019-12-25 02:09:24
问题 I have several textfields in a view, and one to write the country. I wish that when you press up in the testField country that was to another view where you have a UIPickerView to select the country. Then place the following code associated with the event "Editing did begin" of _tfCountry. - (IBAction)countryPressed:(id)sender { [_tfCountry endEditing:YES]; [_tfAdress resignFirstResponder]; [_tfCountry resignFirstResponder]; [_tfName resignFirstResponder]; [_tfEmail resignFirstResponder]; [