forked from qt-creator/qt-creator
QmlDesigner: Use Qt::Key_Backspace instaed of QKeySequence::Backspace
Task-number: QDS-5011 Change-Id: If3e0719389e47110b8885ab709568a8daaf0ec1d Reviewed-by: Knud Dollereder <knud.dollereder@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -154,7 +154,7 @@ void ShortCutManager::registerActions(const Core::Context &qmlDesignerMainContex
|
||||
m_deleteAction.setIcon(QIcon::fromTheme(QLatin1String("edit-cut"), Utils::Icons::EDIT_CLEAR_TOOLBAR.icon()));
|
||||
|
||||
command = Core::ActionManager::registerAction(&m_deleteAction, QmlDesigner::Constants::C_DELETE, qmlDesignerMainContext);
|
||||
command->setDefaultKeySequences({QKeySequence::Delete, QKeySequence::Backspace});
|
||||
command->setDefaultKeySequences({Qt::Key_Backspace, Qt::Key_Delete});
|
||||
|
||||
command->setAttribute(Core::Command::CA_Hide); // don't show delete in other modes
|
||||
if (!Utils::HostOsInfo::isMacHost())
|
||||
|
Reference in New Issue
Block a user