Shumway is generating wrong key codes

RESOLVED INCOMPLETE
(NeedInfo from)

Status

Firefox Graveyard
Shumway
P4
normal
RESOLVED INCOMPLETE
4 years ago
2 years ago

People

(Reporter: mbx, Assigned: mbx, NeedInfo)

Tracking

Details

(Assignee)

Description

4 years ago
Pressing "+" key results in a keycode of 61 in Firefox. It should be 187 in Flash. (We do get the correct key code in Chrome however.)

stage.addEventListener(KeyboardEvent.KEY_DOWN, function (event:KeyboardEvent) {
	trace (event.keyCode);
});
This is a low-priority for ads, but it would break some games.
Assignee: nobody → mbebenita
Blocks: 1037568
Priority: -- → P4
Summary: Wrong key codes. → Shumway is generating wrong key codes

Comment 2

4 years ago
According to bug 537955 comment 5 , keycodes are browser dependent. Newer browsers have implemented the DOM Level 3 Keyboard spec

KeyboardEvent.key (Firefox / IE) / .keyIdentifier (Chrome / Safari) should be compatible across browsers. [1]

[1] - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.key
Blocks: 1037580
No longer blocks: 1037568
This key code bug doesn't seem like it needs to block ads. Can we defer it to a later milestone?
Flags: needinfo?(mbebenita)
Blocks: 1140984
No longer blocks: 1037580
Product: Firefox → Firefox Graveyard
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.