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

I'm trying to make a hotkey to control some code but am struggling to access the last key that has been pressed on the keyboard. I have this setup to save the key code from the last key press: import ...
Richard's user avatar
0 votes
1 answer
359 views

Code I got so far import pyglet from pyglet.window import key animation = pyglet.image.load_animation('/home/arctic/Downloads/work/gif/ErrorToSurprised.gif') animSprite = pyglet.sprite.Sprite(...
ArcticFlower484's user avatar
1 vote
1 answer
2k views

I have a custom dialog in Blazor. It basically works fine but has some flaws: When tabbing with keyboard focus jumps between controls on underlying page and not inside dialog. When clicking Esc or ...
Jakob Lithner's user avatar
2 votes
1 answer
2k views

I would like to know, what does VK stand for in java? Here is an instance code in order to give you a brief idea where it is used: public void keyPressed(KeyEvent e){ if (e.getKeyCode == KeyEvent....
Jovan Raskovic's user avatar
0 votes
1 answer
520 views

I have a program programming with Pyqt5 in which I would like to register some keys simoultaneously;for example, up+right to go to the upper diagonal. The problem is that with the pressEvent only ...
ferferfer's user avatar
-1 votes
1 answer
483 views

So I'm working on building a text editor using java, javaFx, I have to open a file in the (Editor VBox) and put the lines in a double linked list, then edit, delete, overWrite a line etc.., I made a ...
user467079's user avatar
3 votes
2 answers
2k views

I don't know how to replace the F5 key action in SAPUI5. I have a button "Refresh" which is reloading my business data in the UI and made some kind of manipulation before showing it on the ...
Lionel Samstag.'s user avatar
0 votes
1 answer
46 views

I have coded for multi Jtextfields in my project and used KeyPressed Events for each fields for Enter Key. Now I use a Touch Monitor.And now I want to Use a button and do the same thing by pressing ...
Hasan Dulanga's user avatar
0 votes
1 answer
364 views

I created A Jframe that consists of Jbutton (Ok),Jbutton(cancel) , Jtextfield and a Jtable . I want when press on OK button , focus changes to Jtextfield, and when press a gain , focus change to ...
Calm Sea's user avatar
  • 181
1 vote
1 answer
123 views

I don't understand how I get the "correct" key codes for configuring the keyboard map of reveal.js. Some integers work, like 27 for escape, others don't like I need Period (.) and F5 for a ...
0__'s user avatar
  • 67.5k
0 votes
1 answer
208 views

So I have a little program where you can fly your spaceship between planets and I want to use the arrow keys to rotate the ship. First I tried adding the key listener to the panel and the ship did ...
LegitLinus's user avatar
0 votes
1 answer
1k views

When I press a key using keyEvent, then I call the function, it is below. const GeneratedKey: FC<IGenerated> = (props) => { const [keyBoard, setKeyBoard] = useState("") ...
reszi.'s user avatar
  • 3
1 vote
3 answers
485 views

I have a very simple problem, which I can't find in any other posts : In javafx15 / java15.0.1, I am trying to click a Checkbox while pressing, for example, the CONTROL key... State is not changing. I ...
Daric's user avatar
  • 93
0 votes
0 answers
113 views

I am making a Editable ComboBox which show any values contain the input and it works fine. But the problem is in the input field, whenever i typed Space or arrow buttons the input field keep reseting. ...
Haru's user avatar
  • 9
0 votes
1 answer
124 views

I want key A to be held for at least three seconds without a break. If the key press is interrupted, the three-second period should apply again. This is my previous program. Unfortunately, while the ...
Daniel's user avatar
  • 558
0 votes
0 answers
2k views

Is there a way to switch to an HDMI input programmatically on Android TV? I.e. a Smart TV, not a separate box. What I was trying is to send a key event like this: # `someButton` is a button on the `...
denoyse's user avatar
1 vote
0 answers
217 views

This works: onView(withId(R.id.textView)).perform(replaceText("THI")) onView(withId(R.id.textView)).perform( doubleClick(), pressKey(KeyEvent....
happyhappy's user avatar
0 votes
1 answer
986 views

My code: from tkinter import * import tkinter as tk root = Tk() def Hello(): print("You press '<' key") root.bind("<", Hello) root.mainloop() But I receive error: ...
Block's user avatar
  • 179
2 votes
2 answers
3k views

I'm trying to override the standard behavior of the tab key inside the tkinter text widget. I was trying from tkinter import * def enter_return(event): print("Return") def enter_tab(...
bookofproofs's user avatar
1 vote
1 answer
250 views

I have trouble implementing arrow key navigation of a DataGridView (no datasource used). The DataGridView has 2 different type of items, most of the time every second item is of the first type, vice ...
Yesyoor's user avatar
  • 166
0 votes
1 answer
122 views

I have this dialog, with just a textView and no buttons. It displays some info and I need to change info on key press left and right. Unfortunately the dialog closes on any key. This code in ...
kekk0's user avatar
  • 57
0 votes
1 answer
2k views

I have the following input <input type="checkbox" checked={isChecked} onChange={handleOnChange}/> and my function is this const handleOnChange = () => { let element:any = ...
javaFE's user avatar
  • 39
0 votes
1 answer
72 views

I used Winform in C# Visual Studio. At first I had an OnKeyDown and it worked well. After this i added a button to the form. I dragged the button from the toolbox and doubleclicked on it. Then it ...
Da_Pusti's user avatar
0 votes
2 answers
98 views

I was trying to create a simple game. For this, i created a JButton that moves down and up, but it only works one time when i click the Down and Up arrows. Can i make it moves every time I click these ...
br451l's user avatar
  • 1
0 votes
0 answers
36 views

I am building a JavaFX typing application and am trying to check if the user input matches the letters they need to type. I am doing this through a KeyEvent and comparing that individually to the ...
bard's user avatar
  • 1
1 vote
1 answer
126 views

my goal is to build playing drums using vanilla Javascript, whole code worked perfectly when I was using only the keydown event, unfortunately, my drums have to play also on mouse 'click'. When I ...
Emilia Boska's user avatar
0 votes
1 answer
484 views

I am working on a chrome extension which disables backspace; it doesn't work in google docs. https://github.com/tuminzee/disable-backspace manifest.json "name": "Disable Backspace&...
Tumin's user avatar
  • 11
2 votes
1 answer
1k views

I wrote an Android app with a button that raises KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE to control third party media player apps. This works perfectly for several days or weeks, but then the key event ...
Kevin Krumwiede's user avatar
0 votes
1 answer
74 views

I have a login form like this image. The login button it's a JLabel with an icon. I want to be able to press "ENTER" and login. I've put the login logic into a method called doAction(); I ...
Daniel Rad's user avatar
0 votes
3 answers
174 views

I am trying to get the down arrow keyup event to fire automagically using jQuery. The annotorious/seadragon combination has a listener that opens all preconfigured tags when I press the down arrow. I ...
Garet Jax's user avatar
  • 1,211
0 votes
1 answer
3k views

I am trying to capture up,down,right,left keys from KeyEvent, and I am getting following message when I press a key: 2021-06-05 00:46:11.176 java[47646:1823153] TSM ...
woelhah's user avatar
0 votes
1 answer
473 views

I have the following minimalistic code that works perfectly fine: a continuous while loop keeps plotting my data and if I press the escape key the plotting stops. Now, if one closes the matplotlib-...
Wolfmercury's user avatar
1 vote
1 answer
1k views

I have the following button: <button @click="toggleModal" @keydown.enter="toggleModalWithFocusTrap"> It seems to me that in vue both events click and enter are equivalent. ...
Michael Andorfer's user avatar
3 votes
1 answer
11k views

I am trying to use KeyListener to input information, such as using the arrow keys to move an object in a plane, but as soon as I press my first key, the error below is thrown: 2021-05-20 09:55:35.400 ...
user avatar
0 votes
0 answers
114 views

My application is trying to detect when a user double clicks the back quote (`) key on the keyboard. How do I do it?
Marsupito's user avatar
0 votes
1 answer
327 views

I want arrow keys in a ScrollPane to work in a way other than the default. Consuming arrow keys in a KeyPressed handler on the ScrollPane does not prevent them from being processed by he ScrollPane. ...
silvalli's user avatar
  • 305
0 votes
1 answer
70 views

I made a custom JTextField to input numeric values. The class looks as follows: import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; public class JNumberField extends JTextField { ...
Teh Swish's user avatar
0 votes
1 answer
5k views

I am trying to detect whether the client has their CapsLock enabled by temporarily creating a hidden input field, triggering a keyup event on that input, and then checking the boolean value of e....
Brandon McConnell's user avatar
0 votes
0 answers
239 views

I am new to Java, and am trying to learn GUI basics by making a simple application.My application is just a simple button that, when clicked, changes its name to the number of times it has been ...
Booshy's user avatar
  • 1
3 votes
0 answers
527 views

Trying to Accomplish: There are a few TextBoxes and ComboBoxes (ActiveX Controls) arranged in order on an Excel worksheet (Sheet1) like a UserForm. I would like to navigate between these controls by ...
AvinEswar's user avatar
  • 203
5 votes
1 answer
1k views

I am working on a macOS app that is a background app and so I would like to perform a particular function when a keyboard key is pressed. I read from the apple documentation that ...
MaraV932's user avatar
0 votes
1 answer
415 views

I need to enter a name and the textfield should accept letters and until 100 characters only so I used KeyPressed and put a letter validation as well as the input number of characters limit but when I ...
helo's user avatar
  • 19
1 vote
1 answer
1k views

I need my win form - vb.net, to detect if Control + P is being pressed as well as Control + Shift + P as well as just the letter P being pressed. i have ready how this should be done, and then wrote ...
Andy Andromeda's user avatar
1 vote
0 answers
204 views

I'm writing a small CLI utility in python for a test here. It's an infinite while loop that keeps an input command running. Every time a command is inputed, it is added to the commands list, which is ...
AndersonPEM's user avatar
0 votes
0 answers
13 views

Using Java/Netbeans. I thought this would be simple but . . . I have a JTextArea. When I type an 'x' or 'X' I want to display 'θ'. This was easy. I want to add "CTL-x" to display lower 'x'...
William Brandley's user avatar
0 votes
3 answers
48 views

I am trying to make a keymap for my keyboard to not use Microsofts useless IME keyboard. So I wrote this python code with pynput. But it doesn't seem to execute my execute() function from pynput....
Arib.Glitch's user avatar
1 vote
1 answer
511 views

import java.awt.event.KeyEvent; import java.awt.event.KeyListener; public class Tastatur implements KeyListener { private boolean[] keys = new boolean[66568]; private boolean left, right,...
Shizuja's user avatar
  • 13
1 vote
0 answers
357 views

I am trying to build an application that records audio which is then sent to a Speech-to-Text API to receive its transcription. I want that the application is able to interact with a Bluetooth headset/...
Aayush Rajput's user avatar
-2 votes
1 answer
347 views

I'm newbie with javascript and I'm not able to figure out how to stop and wait until return key has been pressed. Any help is appreciated. Thanks in advance.
JPrado's user avatar
  • 21
0 votes
1 answer
100 views

I wonder if there is a way to scan in Java for a certain volume in a predefined process. If this volume exceeds a certain dB value, a certain KeyEvent or MouseEvent should be executed only on this ...
Luqus's user avatar
  • 119

1 2
3
4 5
30