Closed
Bug 517495
Opened 15 years ago
Closed 14 years ago
keyup event repeats while key is held
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: gb, Unassigned)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
600 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
When pressing and holding a key, autorepeat should repeat the keydown and keypress events but not the keyup event. Keyup should happen only when the key is released.
On the Linux version of 3.5.3 firefox keyup repeats as well as the others.
Reproducible: Always
Steps to Reproduce:
1. Construct a simple page like this:
<html>
<head>
<script type="text/javascript">
document.onkeydown = function(e){console.log('down'); };
document.onkeyup = function(e){console.log('up'); };
</script>
</head>
<body>
<h1>KeyUp bug</h1>
</body>
</html>
2. visit that page and enable the firebug console so you can see the console.log output.
3. press and hold a key such as right arrow
Actual Results:
Note that it is repeatedly logging down up down up.
Expected Results:
It should be logging down down down down ... and finally up when you release the key.
I've tested this on two different machines both running Ubuntu Jaunty with the latest version of FF installed with ubuntuzilla.py.
Reporter | ||
Comment 1•15 years ago
|
||
I created a simple page to demonstrate the problem without requiring Firebug. It is at http://gb.cs.unc.edu/tmp/keyupbug.html.
As explained on the page you when holding a key you should see DDDDDD...U but with Firefox 3.5.3 running on linux you'll see DUDUDUDUDUDU
Reporter | ||
Comment 2•15 years ago
|
||
I'm attaching the source of the page at the URL given earlier so it can stay with the bug.
bug 597981 will likely change our behavior here, although I don't know if it will fix the problem you report (which I'm not seeing).
Component: General → Widget: Gtk
Product: Firefox → Core
QA Contact: general → gtk
Comment 4•14 years ago
|
||
This sounds like a bug either in GDK or in the server's support for XkbSetDetectableAutoRepeat.
Bug 597981 comment 12 reported this problem with Ubuntu 9.10.
This report is Ubuntu 9.04.
Reporter | ||
Comment 5•14 years ago
|
||
It appears to be fixed now. I haven't been tracking versions to note when it got fixed but the script works as expected in 3.6.10 on Ubuntu Lucid.
Comment 6•14 years ago
|
||
I think that this is a bug of something on Ubuntu 9.x. And I have no idea for away fixing this bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Not our bug I guess.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Comment 8•14 years ago
|
||
-> v.
I agree, but I should document this in MDC's key event document.
Version: unspecified → Trunk
Comment 10•14 years ago
|
||
I wrote the document:
https://developer.mozilla.org/en/DOM/Event/UIEvent/KeyEvent#Order_of_key_events
Feel free to improve the English :-)
Updated•14 years ago
|
Keywords: dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•