Reviewed by Simon
Provide access to the underlying QKeyEvent in PlatformKeyboardEvent.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@35341
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
+
+ Reviewed by Simon
+
+ Provide access to the underlying QKeyEvent in PlatformKeyboardEvent.
+
+ * platform/PlatformKeyboardEvent.h: add accessor and member.
+ * platform/qt/PlatformKeyboardEventQt.cpp: copy pointer in ctor.
+ (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
+
2008-07-25 Simon Hausmann <hausmann@webkit.org>
Fix linking of QtWebKit against the statically built JavaScriptCore
#if PLATFORM(QT)
PlatformKeyboardEvent(QKeyEvent*);
+ QKeyEvent* qtEvent() const { return m_qtEvent; }
#endif
#if PLATFORM(WX)
#endif
#if PLATFORM(GTK)
GdkEventKey* m_gdkEventKey;
+#endif
+#if PLATFORM(QT)
+ QKeyEvent* m_qtEvent;
#endif
};
m_windowsVirtualKeyCode = windowsKeyCodeForKeyEvent(event->key());
m_isKeypad = (state & Qt::KeypadModifier) != 0;
m_shiftKey = (state & Qt::ShiftModifier) != 0 || event->key() == Qt::Key_Backtab; // Simulate Shift+Tab with Key_Backtab
+ m_qtEvent = event;
}
void PlatformKeyboardEvent::disambiguateKeyDownEvent(Type type, bool)