Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Filter by
Sorted by
Tagged with
2 votes
3 answers
872 views

So im trying to send an KeyEvent to the JFrame component. Like when u press a key while the window is focused normally it sends an KeyEvent to the JFrame and triggers something. But how can i simulate ...
Coderman69's user avatar
0 votes
0 answers
127 views

When i call JFXDialog, the dialog appear with message and button, all beautiful, than i can close it by pressing the button, but i can not close it by using key event on KeyCode.Enter JFXDialog is ...
Curaciov Vadim's user avatar
0 votes
1 answer
134 views

I am making sort of a "catch the egg in the basket" game, and my controls using arrow keys, run by event listeners, will get progressively more sensitive as there are more and more event ...
LlamaButt's user avatar
  • 481
0 votes
1 answer
400 views

Platform: Intellij IDEA Language: JavaFX I would like to be able to select a line of text where the cursor lies. Similar to SQL Developer, I have a textarea that allows multiples lines of input or ...
Josh Pulda's user avatar
0 votes
1 answer
262 views

I'm currently learning Java through Stanford's Programming Methodology (2008) course. I'm trying to create the game Breakout and am trying to currently animate the paddle, which is a GRect type object....
Ebrin's user avatar
  • 219
-1 votes
1 answer
1k views

I would like to start a python script by using the keyboard shortcut Ctrl+Shift+H. When the script starts, the keys Ctrl and Shift may still be pressed (depending on how quickly I remove my fingers). ...
Zach's user avatar
  • 630
3 votes
1 answer
467 views

I would like to start a julia script by using the keyboard shortcut Ctrl+Shift+H. When the script starts, the keys Ctrl and Shift may still be pressed (depending on how quickly I remove my fingers). I ...
Zach's user avatar
  • 630
3 votes
1 answer
453 views

So I could use a combination of CTL+ for control characters , SHIFT+ for Upper case letters like A ,B and characters like !,{ (i.e Basic Latin and punctuation characters) . However I am not able to ...
theDarkerHorse's user avatar
-1 votes
2 answers
64 views

I am trying to make a PacMan alternative with a tiger chasing bagels (don't ask why). I'm on the first stage still, trying to make the tiger move around the JFrame. However, now that I implemented the ...
Alty's user avatar
  • 15
0 votes
1 answer
65 views

I am using following code to set shortcut keys for my JFrame. KeyboardFocusManager keyManager; keyManager=KeyboardFocusManager.getCurrentKeyboardFocusManager(); keyManager.addKeyEventDispatcher(new ...
user avatar
1 vote
0 answers
208 views

I am using react-native-keyevent to capture input events through the android app. I'm trying to capture ASDERFF|ERRTO| | using events. I'm able to get only ASDERFF|ERRTO| remaining spaces and the ...
soma sekhar's user avatar
0 votes
1 answer
793 views

I just discovered Qt Designer today and it's rather wonderful. But I'm a keyboard fanatic and don't want to be forced to use the mouse any more than is strictly necessary, or at the very least I want ...
mike rodent's user avatar
  • 16.1k
0 votes
1 answer
723 views

I can control my bot through web. These are its url- forward- https://172.0.0.1/forward backward- https://172.0.0.1/backward left- https://172.0.0.1/left right- https://172.0.0.1/right stop- ...
Shahriar Shafin's user avatar
1 vote
1 answer
98 views

I am writing a MacOS Menu Bar Application which uses a popover. I have relied on a number of tutorials to get things going. Very briefly, the code looks something like this: class AppDelegate: ...
Manngo's user avatar
  • 17k
0 votes
1 answer
461 views

I originally had code that set the focus to the first widget in a dialog, in the onInit method. But there were problems with it: if I pressed TAB, indeed focus moved to next control (wxTextCtrl), ...
user2943111's user avatar
1 vote
1 answer
93 views

When using the KeyTyped method for the KeyListener, sometimes I get "missing characters". I'll show the code I use to get them, then ask my question. public class KeyInput implements ...
Coding Mason's user avatar
0 votes
4 answers
3k views

I have a function that prevents people putting numbers or any symbol but letters onkeypress into a text box due to ongoing problems with data entry. <td><input type="text" name=&...
Kilisi's user avatar
  • 442
0 votes
1 answer
56 views

I am working on a specific requirement where I need to set the SHIFT state of the Google SIP from the Android Application. My question is, is there any API available for Google SIP (GBoard) which can ...
MMJ's user avatar
  • 547
0 votes
0 answers
91 views

This is throwing me off a little bit. I am working on a small plugin for Home Assistant that works as a remote for my Android TV box (Nvidia SheildTV). I am sending commands via adb. I am attempting ...
Dustin Tinsley's user avatar
7 votes
0 answers
3k views

Okay so I know many similar questions have been asked but nothing is working so far. I have tried all the mediaSessionCompat methods and callbacks but to no luck. I have gone through the documentation ...
Adnan Arshad's user avatar
-1 votes
1 answer
209 views

I am trying to get KeyUp events for textBox control at runtime but I am struggling to cast correctly. The code below compiles and I can see the event info when I add a Watch/Inspect ...
Belliez's user avatar
  • 5,406
-1 votes
1 answer
89 views

I have a lengthy form containing multiply text boxes and list boxes in order to gather data. There is a logical sequence to the controls and the tab indexes are set to lead the user through. My ...
Kenny's user avatar
  • 3
1 vote
0 answers
65 views

I have an edittext where I'm trying to over ride the default input of physical keys to replace with custom input for each key. My code works fine to add the input that I want, but I cannot seem to ...
sh7411usa's user avatar
  • 315
4 votes
3 answers
13k views

I have a component with an input element and I would like to trigger a "tab" keypress event on that input element in order to jump to the next input element whenever a certain set of logic ...
zkwsk's user avatar
  • 2,146
0 votes
1 answer
323 views

New user: studying Java since January, I am using NetBeans right now, if I write this simple idea of shortcut I get tons of errors. Scene root = new Scene(layout ,Screen.getPrimary().getBounds()....
Marcello Colombo's user avatar
0 votes
2 answers
332 views

I don't know which component should I use to create a moving square on my JPanel. So I decided to use another JPanel to make an object. My first goal was moving the object but you know the games, when ...
Thomas Winter's user avatar
0 votes
0 answers
163 views

In a method i'm receiving vk_key's as just a int, nothing more is provided. I need to forward this, which looks like: parent.postEvent(new KeyEvent(null, parent.millis(), KeyEvent.TYPE, modiefiers, ...
clankill3r's user avatar
  • 9,643
1 vote
0 answers
362 views

I want to implement my own virtual keyboard which constructed in dynamic way. I'd like to use event.code as key selector. To make it supporting different system languages I need to prepare data maps ...
Serhii's user avatar
  • 7,645
0 votes
4 answers
892 views

I've written the following KeyListener in Java. import java.awt.event.KeyEvent; import java.awt.event.KeyListener; public class KeyHandler implements KeyListener{ @Override public void ...
MatseCrafter_304's user avatar
3 votes
2 answers
3k views

I am trying to navigate to a URL in a browser through the AccessibilityService. I am able to find the URL bar and enter a URL into the EditText, but I can't find a way to press enter to actually go ...
Flyview's user avatar
  • 2,001
3 votes
1 answer
2k views

I'm trying to assign a Keyboard event to a specific keypress on a specific scene. This scene is loaded when a button is clicked on a previous scene. My problem is: where would I assign this event to ...
Sir Franis's user avatar
2 votes
2 answers
117 views

I need a text box which when maxlength is reached, need to position cursor to beginning and on key input needs to replace the characters as keys are pressed. My sample code is below. I can get cursor ...
teema's user avatar
  • 43
0 votes
1 answer
77 views

First, here's the live application I'm working on as a study: turbo_synth I'm making it using VueJS, however, I believe the issue is unrelated to Vue. The issue: It all works fine and dandy, except ...
Alex Viglione's user avatar
0 votes
1 answer
2k views

can anyone explain me how the argument e is captured and passed as a function callback which displays the keyboardEvent Object in console. Same this can be acheived by using () => console.log(...
Amar's user avatar
  • 145
0 votes
1 answer
806 views

I've seen many examples that write AnimationTimer and KeyListener in Main class but not seen in another class. I've tried How to write a KeyListener for JavaFX in "VolleyController", but I ...
Nightysky's user avatar
0 votes
0 answers
26 views

I am trying to write a fairly simple script to simulate keypresses repeatedly. KeyPress works, but for some reason, it won't recognize double letters, nor will it allow a loop, be it do-while, if-then,...
Jacob Christonsen's user avatar
3 votes
0 answers
342 views

My program can't press right shift. I try to use java robot for this, but my method feintOne() only twice press left shift. At the same time, the program can determine which of the Shift was pressed ...
Иван Абоян's user avatar
1 vote
1 answer
481 views

It seems I can't make my program to notice the fact that I'm pressing a button. I've seen at a lot of tutorials and images and I think this code should work but it just won't. Can anybody help me? ...
Harredando's user avatar
0 votes
0 answers
61 views

Is there a way to do SlickGrid keyboard navigation on frozen headers? I have a slick grid spreadsheet and can use the keyboard arrows inside the context. Now I want to use the keyboard arrows inside ...
Samvel's user avatar
  • 85
1 vote
1 answer
597 views

I am trying to code a simple keyevent for a player movement script that would respond the the "w" key. I hope to eventually make it do something like move the character but for now im just trying to ...
PythonNerd's user avatar
0 votes
0 answers
25 views

I'm writing custom processKeyEvent(KeyEvent e). First of all I want only digits to be processed, so my function looks like this: @Override public void processKeyEvent(KeyEvent e) { if (Character....
Ecto's user avatar
  • 1,147
0 votes
1 answer
2k views

I'm using robotgo to listen to keyboard events. I would like to add my own functions for every key pressed but I am unable to get it to trigger for more than 1 key. So the main function looks like ...
Alpha2k's user avatar
  • 2,251
0 votes
0 answers
103 views

How can I press several keys at the same time? and the action was performed for each key that is, I want to hold down a few keys on the keyboard so that the keys on the piano fall simultaneously I ...
tmp20's user avatar
  • 113
0 votes
1 answer
80 views

frame.addKeyListener(new java.awt.event.KeyAdapter() { @Override public void keyPressed(KeyEvent e) { System.out.println("Key typed = " + e.getKeyChar()); if(e....
SchoolOfTheYear's user avatar
0 votes
1 answer
390 views

I'm trying to use ADB shell input keyevent 1000 to test my custom hardware device in android 10, but it returns 0 in ADB log. Secondly, I found ADB shell input keyevent 288 returns keycode 288, ADB ...
cocobear's user avatar
3 votes
1 answer
1k views

The task is to navigate in a dropdown list via arrow keys instead of TAB/TAB+SHIFT. One of the ideas was to replace key down events of arrow keys to simulate TAB/TAB+SHIFT key down. My approach comes ...
Nyoques's user avatar
  • 31
0 votes
0 answers
141 views

I currently have an app using a remote keyboard that when the 0 button is pressed it closes out the app. However when the app closes it highlights the first app on the home screen. Is there a way to ...
matparrott's user avatar
0 votes
1 answer
74 views

I have a WPF-Application with two windows as Views (MVVM). With the first one binding of commands works out quite fine though with the 2nd view commands don't trigger (both windows access the same ...
Rob's user avatar
  • 57
0 votes
1 answer
271 views

Pressing the physical home buttons of two test devices results in getting the KEYCODE_HOME KeyEvent in my AccessibilityService only on one of the devices. Same manufacturer, different model, different ...
Tamás Bolvári's user avatar
0 votes
0 answers
21 views

I am developing an extension for a java Program to automate a task. For that I need to simulate Keyevents that stay inside the Application. If I use the Java.awt.robot Api the keyevent is sent to ...
spam junk's user avatar

1 2 3
4
5
30