Fix previous workaround

The rotate action shortcut was 'space' before this commit and so the
keyPressEvent with space key was never propagated because always grabbed
by the rotate action.
Now the shortcut for the rotate action is ctrl + space.
Note that even if rotate exist in element editor, this doesn't work well
because the rotation is not well managed by the save/load from elmt
file.
This commit is contained in:
joshua 2022-05-22 21:05:54 +02:00
parent 89d03e5503
commit 4ab1ed7fc9
2 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ bool ESEventAddTerminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
@return
*/
bool ESEventAddTerminal::keyPressEvent(QKeyEvent *event) {
if (event -> key() == Qt::Key_Alt) {
if (event -> key() == Qt::Key_Space) {
switch (m_terminal->orientation()) {
case Qet::North :

View File

@ -25,7 +25,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>20</height>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="m_file_menu">
@ -498,7 +498,7 @@
<string>Rotation</string>
</property>
<property name="shortcut">
<string>Space</string>
<string>Ctrl+Space</string>
</property>
</action>
</widget>