From 6a669f139928dbbc41d0a7b17e606e7b3cda1381 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Wed, 25 May 2022 13:47:22 +0200 Subject: [PATCH] Fix previous workaround Because strange behaviour with Qt::key_space if used for keyPressEvent and also in shortcut. Now the shortcut for the rotate action is ctrl + R and key_space to rotate terminal on the fly before placing it in the drawing. --- sources/editor/ui/qetelementeditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/editor/ui/qetelementeditor.cpp b/sources/editor/ui/qetelementeditor.cpp index 87d4cdbc7..6aed776a8 100644 --- a/sources/editor/ui/qetelementeditor.cpp +++ b/sources/editor/ui/qetelementeditor.cpp @@ -1000,6 +1000,7 @@ 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("Ctrl+R"))); #ifndef Q_OS_MAC ui->m_delete_action -> setShortcut(QKeySequence(Qt::Key_Delete));