diff --git a/src/plugins/android/androidmanifesteditorwidget.cpp b/src/plugins/android/androidmanifesteditorwidget.cpp index 751e703e152d86e9f5db16aa94125bb6a8aa937e..ddf27b8923033a9f0bd721b038836d2b7962d86a 100644 --- a/src/plugins/android/androidmanifesteditorwidget.cpp +++ b/src/plugins/android/androidmanifesteditorwidget.cpp @@ -137,6 +137,7 @@ void AndroidManifestEditorWidget::initializePage() // If the user clicks on the mainwidget it gets focus, even though that's not visible // This is to prevent the parent, the actual basetexteditorwidget from getting focus mainWidget->setFocusPolicy(Qt::WheelFocus); + mainWidget->installEventFilter(this); Core::IContext *myContext = new Core::IContext(this); myContext->setWidget(mainWidget); @@ -460,6 +461,12 @@ bool AndroidManifestEditorWidget::eventFilter(QObject *obj, QEvent *event) } } + if (obj == m_overlayWidget) + if (event->type() == QEvent::KeyPress + || event->type() == QEvent::KeyRelease) { + return true; + } + return TextEditor::PlainTextEditorWidget::eventFilter(obj, event); }