+bool MultiLineEdit::event(QEvent *e) {
+ // We need to make sure that global shortcuts aren't eaten
+ if(e->type() == QEvent::ShortcutOverride) {
+ QKeyEvent* event = static_cast<QKeyEvent *>(e);
+ QKeySequence key = QKeySequence(event->key() | event->modifiers());
+ foreach(QAction *action, GraphicalUi::actionCollection()->actions()) {
+ if(action->shortcuts().contains(key)) {
+ e->ignore();
+ return false;
+ }
+ }
+ }
+
+ return MultiLineEditParent::event(e);
+}
+