1,446 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
1
vote
3
replies
164
views
Writing a typing game, with an animated keyboard
I'm a new web developer here. I was hoping to share some code and see if there's a set of functions to use that maps more appropriately to my problem.
My goal is to create a typing game with css ...
2
votes
1
answer
158
views
keydown event doesn't work properly on React
I'm trying to recreate Wordle as a practice for React, and I'm having problems with the keydown event. The idea is that when I press a letter the program writes that letter into a cell and moves to ...
0
votes
3
answers
158
views
In Angular 19, on keydown event,Spacebar is not getting ignored
I am using Angular 19 keydown event on Textbox. It should allow only numbers and decimals up to 2 places. Valid numbers are: 123.45, 675.1, 12345 etc.
This works properly for all keys except Spacebar. ...
1
vote
2
answers
92
views
Language Input Method Editor Software is interfering with my input validation
I have this javascript function for allowing numeric input only
window.addNumericInputValidation = function (elementId) {
var $element = $("#" + elementId);
// First remove any ...
1
vote
1
answer
64
views
Wrong input's selectionStart value after pressing arrow key
Here is the scenario to reproduce the problem:
Given input element has test string as a content. Focus given input element by clicking at the end of the input element
After focusing, caret is set at ...
0
votes
1
answer
112
views
Triggerevent doesn't do anything on a parentwindow
I have an old project made with powerbuilder 10.5. I'm trying to create a keydown or dwnkey event to trigger a commandbutton to execute a print command.
The parentwindow (w_waybill) has some ...
0
votes
0
answers
64
views
Spacebar causes the game to reset after switching to other difficulties in my typing speed game
I'm developing a typing speed game with difficulty levels (easy, medium, hard), where the game tracks typing speed, accuracy, and time. After switching from easy to medium (or other levels), when I ...
0
votes
1
answer
75
views
How to Stop reloading the web when pressing enter in React
I am currently doing a simple to-do list, and I have a problem that when I click enter, my web will reload, which I expect will be adding a new task.
Thank you for helping.
handleSubmit = (event) =>...
3
votes
2
answers
116
views
Problem stopping detecting keys when use "SHIFT"
I was doing tests to detect the keyboard keys, it occurred to me to save it in an array and add the keys in the order in which they are held down. For example, if you keep "w" and "a&...
0
votes
0
answers
38
views
Prevent NSTableView from responding to keyDown:
I have an NSTableView that doesn't allow selecting rows. I'd like keyDown: events (edit: from arrow keys) to reach the view's controller (which is also its delegate).
By default, a table view "...
1
vote
0
answers
104
views
How do I detect that no modifier keys are pressed without manually checking all modifiers?
I am handling keydown which provides a KeyboardEvent on a webpage. I want to only do something if the user pressed a specific letter without holding any modifiers. However, I cannot figure out how to ...
0
votes
0
answers
59
views
WPF CustomControl Textboxes don't trigger KeyDown events
I'm making a custom control for a particular UI I am creating. Ideally, the user inputs a number into some textboxes, and upon pressing enter, those numbers get saved and can be used later in the ...
0
votes
2
answers
498
views
Keydown functions and screen readers
I have a script whereby if a user is focused on an element and presses the down arrow key, it expands/collapses a section. Works in all browsers I've tested without a screen reader, and it works on ...
0
votes
1
answer
94
views
Removing an attribute on keydown jQuery [duplicate]
Update: I've heavily edited this question because no one seemed to be grasping what I'm trying to accomplish. When a user is focused on a heading in the example below and presses the down arrow key, I ...
0
votes
0
answers
40
views
Characters in non-English language packs not being logged by keypress
I have changed my keyboard to a non-English language (Korean) and am looking to log characters inside my onKeyDown.
I came across this stack overflow post about using keypress instead but wasn't able ...