keyevent Questions

5

My users will be using TalkBack enabled or some other Accessible Service. I would like to capture the onKeyEvent events in our App but the event is dispatched to the enabled Accessibility Services....
Harper asked 4/9, 2014 at 9:28

6

Solved

How can I let my custom KeyListener listen for combinations of ALT (or CTRL for that matter) + more than one other key? Assume I have 11 different actions I want the application to do, depending o...
Inversion asked 21/10, 2011 at 15:14

4

Solved

I have search view in my fragment. when I click on it , keyboard is open and I can type text. I want when I click on search button in keyboard , my query send to my server and get result but I don'...
Rutland asked 9/7, 2014 at 19:13

1

Solved

I'm working with remote android TV To catch event when use press remote button I use this code: public boolean dispatchKeyEvent(KeyEvent event) { Log.d("LOG", "Number repeate count = " + event.ge...
Nocti asked 15/12, 2017 at 2:49

3

I want to listen to power key event. How can I do that? Currently the code I am using is this: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(KeyEvent.KEYCODE_POWER == eve...
Nephogram asked 4/10, 2013 at 11:58

3

Solved

I want my JavaFX program to respond to keyboard events. I tried adding listeners to root Pane, to topmost Pane, but it doesn't respond to events! Here is my code: AnchorPane root = new AnchorPane...
Skip asked 30/5, 2013 at 11:30

4

Solved

I want to catch the press of any key of the softkeyboard. I don't want a EditView or TextView in my Activity, the event must be handled from a extended View inside my Activity. I just tried this: ...
Calculation asked 30/6, 2012 at 10:6

2

Solved

I use below code to go back in webview at first try. But for the low render ability, I used XWalkView replace the WebView. public boolean onKeyDown(int keyCode, KeyEvent event) { WebView mWebView...
Pammy asked 5/12, 2016 at 6:53

1

Solved

I'm developing an Android app that intercepts the pressing hardware buttons and makes REST calls to their pressure. The button that I have to intercept is the Push to talk (PTT) button, so not a re...
Shrievalty asked 25/8, 2016 at 13:42

1

I am trying to simulate key event (press) on Chrome 53. All the solutions that I found on StackOverflow seems not to be working.. My goal is to have a function that gets a keyCode and simulates a ...
Goofy asked 15/10, 2016 at 21:42

2

Solved

I'd like to make a python script that can run in the background but print text when a mouseevent or keyevent happens. Are there any libraries/builtin functionality to achieve this? Or any system co...
Reformatory asked 12/9, 2012 at 9:10

2

I'm using an Arduino Uno to hook a (genuine) SNES controller to a computer via USB or Bluetooth. The Arduino captures the controller's button presses and releases using the snespad library. It com...
Mastoid asked 9/8, 2012 at 18:46

2

Solved

I have a floating view created in service, and I need to dispatch key events when I touch this view. I have found out that view.dispatchKeyEvent() needs context of foreground activity, and key eve...
Alarcon asked 7/1, 2014 at 14:43

2

There is a bug in Java 6/7 on OSX where during Drag and Drop operations, it ignores the META (CMD) key. (Ctrl key works just fine on Windows, Ctrl key is also ignores on OSX) I REALLY need to have ...
Hereinto asked 27/7, 2016 at 19:52

3

Solved

I am currently trying to listen for when the power button is pressed. Ultimately I would like to have some code run when the power button is pressed twice, to check whether the screen is locked or ...
Debate asked 7/10, 2011 at 0:42

1

Solved

Is there a way to determine whether the keyboard or mouse events are triggered from a hardware rather than an application like TeamViewer, Steam or some other remote desktop software in a desktop a...
Jacobian asked 24/5, 2016 at 10:55

1

HI! I am currently extending an Android Game Framework,which I found in a Book written by Mario Zechner (who also develops Libgdx). It is working great so far and I accomplished a Java Desktop Imp...
Formularize asked 28/4, 2016 at 12:11

2

Solved

I have a JavaFX TextField control on my FXMl that looks like this... <TextField fx:id="input_search" onKeyPressed="#keyListener" prefHeight="25.0" prefWidth="197.0" /> I want to automatica...
Mancuso asked 17/6, 2015 at 7:20

2

I want to search with my android custom keyboard with the enter key, but it does not work. I've already mapped the keys, I just need to trigger the "search action" on a search text field, just like...

4

Solved

How can I get key combination of keys on keyboard E.G. (Ctrl+somekey, Alt+somekey) with Java? I use KeyEvent listener, MouseEvent listener for all keys on keyboard. I can catch all key event on ke...
Disenfranchise asked 13/1, 2013 at 8:14

1

Solved

How can I check whether a pressed key is printable or not in a key press event in java?
Grebe asked 26/11, 2015 at 17:18

1

I can't figure out how to send a combination of a meta key (e.g. CTRL) and a keycode (e.g. for RETURN) with Android (I am using API level 11 = version 3.0). The documentation of the class KeyEvent...
Filibeg asked 12/8, 2011 at 12:17

1

I want to develop an Android Service app that dispatches KeyEvents to the foreground application. Somehow, it would be like this I cant seem to find a way how, I am only familiar with the acti...
Partly asked 9/12, 2014 at 1:53

3

Solved

I am developing an application where I need to do some post-processing when the user presses CMD+LEFT on a particular text-box. I need to do this after the browser's default functionality (i.e. aft...
Argufy asked 9/12, 2014 at 13:25

4

I want to make my browser full screen. Same as when we do F11 key event. I found some examples such as function maxwin() { var wscript = new ActiveXObject("WScript.Shell"); if (wscript!=n...
Gauger asked 21/9, 2011 at 6:22

© 2022 - 2024 — McMap. All rights reserved.