Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 100267
Collapse All | Expand All

(-)kdelibs-proper/khtml/ChangeLog (+4 lines)
Lines 1-3 Link Here
1
2005-06-20  Allan Sandfeld Jensen <kde@carewolf.com>
2
 
3
        * ecma/kjs_events.cpp: Respect the DOM for MouseEvent::Button atleast when simulating Mozilla
4
1
2005-05-21  Harri Porten  <porten@kde.org>
5
2005-05-21  Harri Porten  <porten@kde.org>
2
6
3
	* html/html_documentimpl.cpp: emit onload event even if the
7
	* html/html_documentimpl.cpp: emit onload event even if the
(-)kdelibs-proper/khtml/ecma/kjs_events.cpp (-1 / +5 lines)
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();

Return to bug 100267