Ticket #2528097 (closed defect)

Reporter


Matteo
Opened: 07/17/09
Last modified: 07/17/09
Status: closed
Type: defect
Resolution: duplicate
Duplicate of: #2528095

Owner


Adam Moore
Target Release:
Priority: P3 (normal)
Summary: key event doesn't take into account the key event type
Description:

If we doesn't specify a key event type, the key event has the "type" property setted as "keypress", and this is reasonable.
But if we specify "up", "down", etc, the event.type property still remains "keypress", instead of being "keyup" etc.!

Type: defect Observed in Version: 3.0.0 Beta1
Component: Event Severity: S3 (normal)
Assigned To: Adam Moore Target Release:
Location: Priority: P3 (normal)
Tags: key, event Relates To: #2528095
Browsers: N/A
URL:
Test Information:

Writing:
Y.on("key", function(event) {
console.log('event.type = '+ event.type);
}, "#bcode", "down", Y );

Gives us:
event.type = keypress

We can't specify "down:" instead of "down" because of #2528095

Change History

Matteo

Posted: 07/17/09
  • relatesto changed to 2528095

Adam Moore

YUI Contributor

Posted: 07/17/09
  • duplicate changed to #2528095
  • priority changed to P3 (normal)
  • resolution changed to duplicate
  • status changed from new to closed

This ticket was marked as a duplicate of ##2528095