Questions tagged [keyup]

The event that happens when a key on the keyboard gets lifted up after pressing it.

770 questions
5
votes
4 answers

jQuery: if key "someKey" pressed

i know that i can detect a key, which has been pressed with the following code: $('input').keyup(function (e){ if(e.keyCode == 13){ alert('enter'); } }) But i need to know if any key was pressed. pseudocode: if ($('input').keyup() == true) …
Keith L.
  • 2,084
  • 11
  • 41
  • 64
5
votes
1 answer

Cell in editmode doesn't fire OnKeyDown event in C#

I've made own datagridview control which ovveride OnKeyDown event: public partial class PMGrid : DataGridView { protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.SuppressKeyPress…
Robert
  • 2,571
  • 10
  • 63
  • 95
5
votes
1 answer

JavaScript 'keyUp' event not triggered after exiting fullscreen

I've got a very strange behavior of the keyUp event. JS snippet is attached. Tested on Chrome/Chromium. Steps to reproduce: F11 to go fullscreen Press down A key (leave it pressed) Press F11 to exit fullscreen Release the A key Result - NO output…
Alexey
  • 2,582
  • 3
  • 13
  • 31
5
votes
3 answers

Replace space ' ' by '-' on keyup

Hello i have two inputs and when im writing in the first input, with keyup jquery function im writing automatically in the second input field. But I want to write line instead of space to the second input field when im clicking the spacebar. For…
Özkan
  • 105
  • 2
  • 7
5
votes
2 answers

How to get the key TAB event on an input element?

I try to trigger a button when in an input field the return key has been hit. This works. But if I hit the tab key nothing is triggered because the TAB key event isn't captured. Fiddle example Here is my JQ code snippet for…
Bernhard Kraus
  • 329
  • 1
  • 3
  • 21
5
votes
2 answers

onkeyup event in Safari on IOS7 from a bluetooth keyboard

I have the following setup: Bluetooth scanner iPad Webpage with a textfield for scan input Usage: User focus textfield and scan barcode with bluetooth scanner Scanner adds ENTER (13) at the end of the scan Problem: On Safari in IOS7 there seems…
EmilPennlov
  • 179
  • 2
  • 5
5
votes
1 answer

keyup event is not firing - backbone

I've got a problem with the JQuery events in one of my Backbone.Marionette Views. I have defined some click and keyboard events. But some of them are not working. For example I want that the fetch-function is called every time the keyup event is…
crebuh
  • 357
  • 1
  • 3
  • 17
5
votes
1 answer

Weird KeyUp behaviour (main form handles events from child?!)

The problem: KeyUp is handled by the grid in main window (Grid_KeyUp) Main window shows a child window (e.g. MessageBox.Show(...)) User presses [Return] (Keys.Return) to close the MessageBox Main window actually GETS the KeyUp event from that…
Jefim
  • 3,017
  • 4
  • 32
  • 50
5
votes
4 answers

jQuery bind to keyup only, not focus

This seems like a simple thing but google hasn't turned up anything for me: How can I bind to a text / value change event only, excluding an input gaining focus? Ie, given the following: $(function(){ $('input#target').on('keyup', function(){ …
Andrew
  • 42,517
  • 51
  • 181
  • 281
4
votes
0 answers

JQuery reverts to original CSS after keyup

I have the following function: function setDropLinkFocus(divID){ $("#" + divID).css("font-weight", "Bold"); } which fires on both a keyup event and a mouseover event. On mouseover, it excutes fine, but on a keyup event, it executes, but then…
pjonas221
  • 63
  • 5
4
votes
2 answers

what is difference between working of keyup and keydown in javascript?

I have been just learning the keypress events in javascript and wonder why do i get different result in keyup and keydown. for eg. if i assign an input with an id and pass through it a addEventListner[reffer code] then if i type "1234" in keydown…
Rahul Ahire
  • 685
  • 11
  • 28
4
votes
2 answers

Keyup event not fired in safari browser only?

The rest of the browsers it is working fine Whenever I type a number, I'm getting the keyup event in all mobile and computer browsers except Safari, the problem is keyup/keydown event is not firing in Safari. I tried with all possible bind &trigger…
Mano CC
  • 41
  • 3
4
votes
1 answer

Conditional keyup listener on h:inputText?

I'm using JSF and I'd like to call a listener on an InputText element's keyup events, but only if the input text is longer than 3 chars. My code is:
K.Gabor
  • 89
  • 2
  • 11
4
votes
2 answers

Angular 2. Keyup event not fired from input

Here is very simple situation but I really do not have idea why it's not working. I got input text field that should call function on keyup event. But it's not.
andrey.shedko
  • 3,128
  • 10
  • 61
  • 121
4
votes
2 answers

searching query to mysql in angularjs using ng-keyup but $http only after 3 seconds

I want to make online search in angularjs, using ng-keyup function. But I suppose that it is wrong to make query to BD on each keyup. So how can I set timer that will make $http service work only if in last 3 second there were no keyups?
kliukovking
  • 569
  • 1
  • 5
  • 16
1 2
3
51 52