Questions tagged [keydown]
"keydown" is an event used in writing software that is triggered when a key on the keyboard is being pressed. It usually precedes the event "keyup".
keydown
1,439
questions
0
votes
1
answer
68
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
24
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 ...
1
vote
1
answer
74
views
How to a catch a 'keydown' event by an element which inherited attribute contenteditable?
For introduction I would like to explain what I try to achieve:
Inside the *div#content* I would like to detect keydown events AND get the element for which the keydown element is detected. For ...
0
votes
3
answers
94
views
How to execute a setInterval function every time a key is pressed and stop when a key is not pressed in JS?
I need to execute a setInterval function only when a specific key (F in this case) is being pressed, and then clear it when the key is not pressed.
So far, I have tried this:
var process;
function ...
0
votes
1
answer
30
views
Adding items to list app with the enter key has made other features not work properly
List app works great until I add a keydown for the enter key. I can only get it to work if it's outside of the newItem() function. When I have the keydown function inside of newItem() function, the ...
0
votes
1
answer
44
views
How to detect combined keystroke (Alt + single-digit or multi-digit number) and get the number?
I'm trying to detect a combined keystroke consisting of Alt (held down) and a single-digit or multi-digit number and then retrieve the entered number for further processing. For example:
Input: Alt + ...
0
votes
1
answer
46
views
Trouble with 'keydown' Event in Chrome Extension: Capturing Backspace Action
I am creating a Chrome extension (code here) and am having trouble with the "keydown" event. I want to use it to capture a 'backspace' before it happens, in order to switch the text the user ...
0
votes
0
answers
29
views
RadzenTemplateForm keydown event not working in Chrome and Edge
I'm encountering an issue with the RadzenTemplateForm component where the keydown event is not functioning as expected in Chrome and Edge browsers. The code I'm using is as follows:
<...
0
votes
0
answers
78
views
Disabling Cargo Collective Navigation Shortcuts
I am a typeface designer and just built a website in Cargo.site. (pedroglifos.com) I am using Fontdue type testers integration so my customers can test the fonts. Everything was fine until I realized ...
1
vote
2
answers
68
views
arrowdown & arrowup key is not working using mat-table in angular
I share my code here when I press downarrow key firsttime it will go on next row but again I press downarrow it will not work properly
(https://i.sstatic.net/4qznx.jpg)
**HTML**
<mat-row *matRowDef=...
0
votes
0
answers
28
views
WPF - KeyDown Event not working with Enter-Key [duplicate]
I tried to implement a simple EventHandler in my WPF in which i tried to raise an Event every time the Enter-Key is pressed inside my GridControl.
It works with every other key but not Enter, which is ...
1
vote
1
answer
95
views
How to determine the position of the cursor (caret position) in keypress or keydown event in Angular @HostListener
I need to determinate de position of the cursor. Here my code:
@HostListener('keypress', ['$event']) disableKeys = (e: KeyboardEvent): any => {
const currentValue: string = (<...
0
votes
0
answers
44
views
Why does the combobox using the keyboard up & down arrows not reflect the textbox in vb.net
Why does the combobox using the keyboard up & down arrows not reflect the textbox in vb.net.
So I want the up and down arrows on the keyboard to still appear in the textbox
I use the String.Equals ...
-1
votes
1
answer
75
views
why do I have to press escape on the keyboard twice in vb.net
I'm using the DropdownStyle Combobox: Dropdown
If I press on the keyboard with enter then only once but why if I press on the keyboard with escape then it must be done twice,
I use the String.Equals ...
2
votes
1
answer
65
views
KeyboardEvent: detect that a key has a printed representation
In my React/Javascript app, I am listening for KeyboardEvents. The documentation for the key property is quite clear on how to get the pressed key value:
Its value is determined as follows:
If the ...