Closed Bug 901363 Opened 13 years ago Closed 13 years ago

jQuery .keyup() command working incorrectly in Linux Firefox build

Categories

(Core :: DOM: Events, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: highbomber, Unassigned)

Details

Attachments

(1 file)

Attached file test.html
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 (Beta/Release) Build ID: 20130627161625 Steps to reproduce: I executed the attached script, which was to execute a function when a key is pressed, and another function when a key is released. Actual results: When the key is pressed, the initial function is called correctly. However, upon release, the second function is never called. Expected results: The second function should have been called. This script works incorrectly on my Linux Firefox v.22. The script works correctly in other browsers, including Windows Firefox v.22. See attached jsfiddle and HTML file. http://jsfiddle.net/nN2Js/3/ Associated jQuery ticket: http://bugs.jquery.com/ticket/14215
OS: Windows 7 → Linux
Version: 19 Branch → 22 Branch
Attachment #785528 - Attachment mime type: text/plain → text/html
You should use '&& e.type == "keydown"' instead of '&& e.keyCode == 16' in the handler.
Component: Untriaged → DOM: Events
Product: Firefox → Core
Version: 22 Branch → unspecified
(In reply to Alice0775 White from comment #1) > You should use '&& e.type == "keydown"' instead of '&& e.keyCode == 16' in > the handler. This works. I wish I had thought of it. Why do other browsers (including Firefox on Windows) not require the keydown check? If it isn't of consequence, this bug can be closed.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: