diff --git a/sources/editor/esevent/eseventaddterminal.cpp b/sources/editor/esevent/eseventaddterminal.cpp index 7a1ef4eb2..a48516e99 100644 --- a/sources/editor/esevent/eseventaddterminal.cpp +++ b/sources/editor/esevent/eseventaddterminal.cpp @@ -87,7 +87,7 @@ bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) { @return */ bool ESEventAddTerminal::keyPressEvent(QKeyEvent *event) { - if (event -> key() == Qt::Key_R) { + if (event -> key() == Qt::Key_Space) { switch (m_terminal->orientation()) { case Qet::North : diff --git a/sources/editor/ui/qetelementeditor.cpp b/sources/editor/ui/qetelementeditor.cpp index 5ce82c31d..1e06360d2 100644 --- a/sources/editor/ui/qetelementeditor.cpp +++ b/sources/editor/ui/qetelementeditor.cpp @@ -1000,7 +1000,6 @@ void QETElementEditor::setupActions() ui->m_paste_in_area_action -> setShortcut(tr("Ctrl+Shift+V")); ui->m_edit_names_action -> setShortcut(QKeySequence(tr("Ctrl+E"))); ui->m_edit_author_action -> setShortcut(tr("Ctrl+Y")); - ui->m_rotate_action -> setShortcut(QKeySequence(tr("SPACE"))); #ifndef Q_OS_MAC ui->m_delete_action -> setShortcut(QKeySequence(Qt::Key_Delete)); @@ -1086,7 +1085,8 @@ void QETElementEditor::updateAction() select_list << ui->m_deselect_all_action << ui->m_cut_action << ui->m_copy_action - << ui->m_delete_action; + << ui->m_delete_action + << ui->m_rotate_action; auto items_selected = !m_read_only && m_elmt_scene->selectedItems().count(); for (auto action : qAsConst(select_list)) { action->setEnabled(items_selected); diff --git a/sources/editor/ui/qetelementeditor.ui b/sources/editor/ui/qetelementeditor.ui index 773045c65..07452bbb8 100644 --- a/sources/editor/ui/qetelementeditor.ui +++ b/sources/editor/ui/qetelementeditor.ui @@ -498,7 +498,7 @@ Rotation - Ctrl+Space + Space