1,446 questions
2 votes
1 answer
156 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
150 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
90 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
61 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
111 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
63 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
68 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
111 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
36 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 "...
0 votes
0 answers
17 views
How to Move Focus Between Grid Columns on Enter Key in a Data Entry Grid with ComboBox Columns?
I’m a beginner in software development and currently working on a data entry grid. I’m using a grid control with 5 ComboBox columns (Column A, B, C, D, and E). I want to handle the Enter key so that ...
1 vote
0 answers
102 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
57 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
477 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
93 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
38 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 ...