summaryrefslogtreecommitdiffstats
path: root/src/widgets/platforms/win
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/platforms/win')
-rw-r--r--src/widgets/platforms/win/qkeymapper_win.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/widgets/platforms/win/qkeymapper_win.cpp b/src/widgets/platforms/win/qkeymapper_win.cpp
index 78389c1160..076b37038d 100644
--- a/src/widgets/platforms/win/qkeymapper_win.cpp
+++ b/src/widgets/platforms/win/qkeymapper_win.cpp
@@ -1168,24 +1168,8 @@ bool QKeyMapper::sendKeyEvent(QWidget *widget, bool grab,
quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers,
bool *)
{
-#if defined(Q_OS_WINCE)
Q_UNUSED(grab);
-#endif
Q_UNUSED(count);
-#if defined QT3_SUPPORT && !defined(QT_NO_SHORTCUT)
- if (type == QEvent::KeyPress
- && !grab
- && QApplicationPrivate::instance()->use_compat()) {
- // send accel events if the keyboard is not grabbed
- QKeyEventEx a(type, code, modifiers,
- text, autorepeat, qMax(1, int(text.length())),
- nativeScanCode, nativeVirtualKey, nativeModifiers);
- if (QApplicationPrivate::instance()->qt_tryAccelEvent(widget, &a))
- return true;
- }
-#else
- Q_UNUSED(grab);
-#endif
if (!widget->isEnabled())
return false;