+2005-04-27 John Sullivan <sullivan@apple.com>
+
+ Reviewed by Adele.
+
+ - fixed problem with mouse wheel patch where alt and shift keys were switched
+
+ * khtml/xml/dom2_eventsimpl.h:
+ use the order cntl, alt, shift, meta in KeyboardEventImpl constructors to match
+ superclass. This isn't necessary to fix the bug, but is better for clarity.
+
+ * khtml/xml/dom2_eventsimpl.cpp:
+ (KeyboardEventImpl::KeyboardEventImpl):
+ switch parameter order to match superclass. Then pass the parameters to superclass's
+ constructor in the right order.
+ (KeyboardEventImpl::initKeyboardEvent):
+ Pass parameters to superclass's constructor in the right order.
+
2005-04-26 Adele Peterson <adele@apple.com>
Fixed by Darin, reviewed by me.
: UIEventWithKeyStateImpl(key->type() == QEvent::KeyRelease ? KEYUP_EVENT : key->isAutoRepeat() ? KEYPRESS_EVENT : KEYDOWN_EVENT,
true, true, view, 0,
key->state() & Qt::ControlButton,
- key->state() & Qt::ShiftButton,
key->state() & Qt::AltButton,
+ key->state() & Qt::ShiftButton,
key->state() & Qt::MetaButton)
{
#if APPLE_CHANGES
const DOMString &keyIdentifierArg,
unsigned long keyLocationArg,
bool ctrlKeyArg,
- bool shiftKeyArg,
bool altKeyArg,
+ bool shiftKeyArg,
bool metaKeyArg,
bool altGraphKeyArg)
- : UIEventWithKeyStateImpl(_id, canBubbleArg, cancelableArg, viewArg, 0, ctrlKeyArg, shiftKeyArg, altKeyArg, metaKeyArg)
+ : UIEventWithKeyStateImpl(_id, canBubbleArg, cancelableArg, viewArg, 0, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg)
{
m_keyEvent = 0;
m_keyIdentifier = keyIdentifierArg.implementation();
const DOMString &keyIdentifierArg,
unsigned long keyLocationArg,
bool ctrlKeyArg,
- bool shiftKeyArg,
bool altKeyArg,
+ bool shiftKeyArg,
bool metaKeyArg,
bool altGraphKeyArg)
{
const DOMString &keyIdentifierArg,
unsigned long keyLocationArg,
bool ctrlKeyArg,
- bool shiftKeyArg,
bool altKeyArg,
+ bool shiftKeyArg,
bool metaKeyArg,
bool altGraphKeyArg);
virtual ~KeyboardEventImpl();
const DOMString &keyIdentifierArg,
unsigned long keyLocationArg,
bool ctrlKeyArg,
- bool shiftKeyArg,
bool altKeyArg,
+ bool shiftKeyArg,
bool metaKeyArg,
bool altGraphKeyArg);