Closed Bug 241247 Opened 20 years ago Closed 20 years ago

no keycode for scroll_lock

Categories

(Core Graveyard :: GFX: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8alpha1

People

(Reporter: tony, Assigned: caillon)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6

When in Linux, the scroll_lock key does not generate a keycode, whereas in
Windows (2K), scroll_lock generates keycode of 0x145.  This was tested in
Firefox 0.8.  You can test it at the URL,
http://www.sonic.net/~tchang/keycode.html .

Reproducible: Always
Steps to Reproduce:
1. surf to http://www.sonic.net/~tchang/keycode.html using Windows Firefox 0.8,
and Linux Firefox 0.8.
2. Hit the Scroll_Lock button on the keyboard and note the different results.


Actual Results:  
in Linux, the keycode returned was 0x0

Expected Results:  
return keycode of 0x145
*** Bug 241252 has been marked as a duplicate of this bug. ***
Don's see anything in FireFox (20040419) (no code at all), but do in Mozilla
20040419.
If it's platform specific, it's a widget issue, not a DOM one...

Confirming the problem with a current GTK1 build.
Assignee: events → blizzard
Status: UNCONFIRMED → NEW
Component: DOM: Events → GFX: Gtk
Ever confirmed: true
Attached patch FixSplinter Review
the num lock key was missing, too.
Assignee: blizzard → caillon
Status: NEW → ASSIGNED
Attachment #146724 - Flags: superreview?(blizzard)
Attachment #146724 - Flags: review?(blizzard)
> Actual Results:  
> in Linux, the keycode returned was 0x0
> 
> Expected Results:  
> return keycode of 0x145

Actually, your expected results are wrong.

scroll_lock should return a keycode of 0x91, not 0x145.  Converted to decimal,
0x91 is 145 which is presumably what you meant....
Attachment #146724 - Flags: superreview?(blizzard)
Attachment #146724 - Flags: superreview+
Attachment #146724 - Flags: review?(blizzard)
Attachment #146724 - Flags: review+
Fix checked in to trunk 2004-04-22 12:19 PDT.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8alpha
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: