Questions tagged [key-events]

An event that is triggered when a Key is pressed on a keyboard input device

A KeyEvent is an event that is triggered when a Key is pressed on a keyboard input device. The event will contain information relating to the particular key that was pressed, how long the key was pressed for, and whether any modifier keys were also pressed (such as Ctrl or Alt).

204 questions
-1
votes
2 answers

press key inside an input box

I am filling up a login form using document.getElementById('i0116').value = email; document.getElementById('i0118').value = password; document.getElementById('idSIButton9').click(); Now the problem starts when form is identifying…
Priyanka
  • 806
  • 1
  • 9
  • 21
-1
votes
3 answers

Why KeyPressEventArgs's e.Handled does nothing in KeyPressEventArgs C#?

This code ( Found through internet ) seems like does nothing at all. How can I prevent non-numeric characters in my TextBox private void textBox1_KeyPress( object sender, KeyPressEventArgs e ) { if( !char.IsDigit(e.KeyChar) &&…
Naveen Kumar V
  • 2,559
  • 2
  • 29
  • 43
-1
votes
1 answer

Mac Safari "command + c" and jquery keypress

I'm trying to implement a feature to focus "Search" field if typed anywhere in the "body". Things are kind of working fine as you see form jsfiddle demo. But in MAC Safari maching if i type "Command + C" it will focus to the search field which…
tomalex
  • 1,233
  • 6
  • 17
  • 40
-1
votes
1 answer

Content Assistant in JAVA

I am trying to create a xml editor which must have a content assistant. I am new in java so my code isn't working properly. I am trying to change a text color while typing (words between '<' and '>' including '<' and '>' must be blue), my non…
Student22b
  • 79
  • 3
  • 13
-2
votes
3 answers

Hotkeys creation for java swing form

How to Create hot keys for form which is made by java swing?for example the form is create for student details means if I press ALT+N means the cursor will goto that name entering field.ALT+R means the cursor will goto Reg.no entering Field.same…
java872
  • 89
  • 1
  • 3
  • 5
-2
votes
2 answers

Getting mouse position in a transparent window

so I have a transparent window that draws a few lines and hud elements. I'm wondering if there's a way to get the position of the mouse within said window when I hit a hotkey set-up such as, say, ctrl-s or something and save the mouse x and y so I…
-2
votes
1 answer

delphi custom component - catching (ctrl or alt key) keydown and keyup keyevents

i have a custom component (descendant from tpanel) and what i wanna do is to catch when the ctrl or alt key is down and up any idea how can it be done?
Emre Acikgoz
  • 93
  • 1
  • 11
-2
votes
1 answer

Pygame keypress should call function just once

Hi the title says it basicly all... To describe it a little more: it a 2D random tilemap on wich you can move a player and he can mine coal. The problem is that if he's standing on the coal and pressed space more than one time the coal gets added…
The_BM
  • 3
  • 4
-3
votes
2 answers

Is there a better way to process user text in this way?

I want there to be a label and a textbox. In the textbox the user types in what is in the label, like a typing test. If the user types the right character in then the character in the label becomes green. I am going to implement this in JavaFX. I…
xAnnette97
  • 13
  • 3
1 2 3
13
14