Merge pull request #15085 from wwmayer/issue_15068

Sketcher: Delete key in non-functional in macOS
This commit is contained in:
Chris Hennes
2024-07-15 10:34:55 -05:00
committed by GitHub
9 changed files with 30 additions and 52 deletions

View File

@@ -120,7 +120,7 @@ bool QGIViewPart::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
// which will be processed by QGVPage/QGVNavStyle keypress logic, but not forwarded to
// Std_Delete
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->key() == Qt::Key_Delete) {
if (keyEvent->matches(QKeySequence::Delete)) {
bool success = removeSelectedCosmetic();
if (success) {
updateView(true);