Lines 634-640
Link Here
|
634 |
case MetaKey: |
634 |
case MetaKey: |
635 |
return Boolean(static_cast<DOM::MouseEvent>(event).metaKey()); |
635 |
return Boolean(static_cast<DOM::MouseEvent>(event).metaKey()); |
636 |
case Button: |
636 |
case Button: |
637 |
{ |
637 |
{ |
|
|
638 |
if ( exec->interpreter()->compatMode() == Interpreter::NetscapeCompat ) { |
639 |
return Number(static_cast<DOM::MouseEvent>(event).button()); |
640 |
} |
641 |
|
638 |
// Tricky. The DOM (and khtml) use 0 for LMB, 1 for MMB and 2 for RMB |
642 |
// Tricky. The DOM (and khtml) use 0 for LMB, 1 for MMB and 2 for RMB |
639 |
// but MSIE uses 1=LMB, 2=RMB, 4=MMB, as a bitfield |
643 |
// but MSIE uses 1=LMB, 2=RMB, 4=MMB, as a bitfield |
640 |
int domButton = static_cast<DOM::MouseEvent>(event).button(); |
644 |
int domButton = static_cast<DOM::MouseEvent>(event).button(); |