From kde-commits Sat Oct 31 20:27:54 2015 From: Jaroslaw Staniek Date: Sat, 31 Oct 2015 20:27:54 +0000 To: kde-commits Subject: [calligra/calligra/2.9] kexi/widget/tableview: Kexi: Make Ctrl+Shift+Insert shortcut insert a new li Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=144632328531334 Git commit d1a760f76596306e2a26510352292397eb334798 by Jaroslaw Staniek. Committed on 31/10/2015 at 20:24. Pushed by staniek into branch 'calligra/2.9'. Kexi: Make Ctrl+Shift+Insert shortcut insert a new line in Table Designer BUG:338832 FIXED-IN:2.9.9 M +2 -1 kexi/widget/tableview/KexiTableScrollArea.cpp http://commits.kde.org/calligra/d1a760f76596306e2a26510352292397eb334798 diff --git a/kexi/widget/tableview/KexiTableScrollArea.cpp b/kexi/widget/ta= bleview/KexiTableScrollArea.cpp index 0768dd1..70c5260 100644 --- a/kexi/widget/tableview/KexiTableScrollArea.cpp +++ b/kexi/widget/tableview/KexiTableScrollArea.cpp @@ -1024,7 +1024,8 @@ void KexiTableScrollArea::contentsMouseMoveEvent(QMou= seEvent *e) static bool overrideEditorShortcutNeeded(QKeyEvent *e) { //perhaps more to come... - return e->key() =3D=3D Qt::Key_Delete && e->modifiers() =3D=3D Qt::Con= trolModifier; + return (e->key() =3D=3D Qt::Key_Delete && e->modifiers() =3D=3D Qt::Co= ntrolModifier) + || (e->key() =3D=3D Qt::Key_Insert && e->modifiers() =3D=3D (Q= t::ControlModifier | Qt::ShiftModifier)); } = bool KexiTableScrollArea::shortCutPressed(QKeyEvent *e, const QString &act= ion_name)