Commit 713e4dd5 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Eike Ziller

Revert "Pass ShortcutOverride events to base class in BaseTextEditorWidget."

This reverts commit 36552d17 because it
broke Ctrl+v among others.

Change-Id: I1c1eecdc9c3e003e96b9c836cd638ead9a3b444d
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent a97dd8ab
......@@ -2061,12 +2061,19 @@ bool BaseTextEditorWidget::event(QEvent *e)
#else
d->m_contentsChanged = false;
#endif
if (e->type() == QEvent::ShortcutOverride
&& static_cast<QKeyEvent*>(e)->key() == Qt::Key_Escape
&& d->m_snippetOverlay->isVisible()) {
e->accept();
switch (e->type()) {
case QEvent::ShortcutOverride:
if (static_cast<QKeyEvent*>(e)->key() == Qt::Key_Escape && d->m_snippetOverlay->isVisible()) {
e->accept();
return true;
}
e->ignore(); // we are a really nice citizen
return true;
break;
default:
break;
}
return QPlainTextEdit::event(e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment