From f163522aa254e87ca4c9037c133096473316fefb Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Wed, 19 Sep 2018 00:04:23 +0800 Subject: [PATCH] Change hotkey 'Tab' to 'E' The Tab key conflicts with system's hot key. Now, should use 'E' to switch the selection from one color to the other. --- docs/shortcuts.rst | 2 +- src/skeletongraphicswidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/shortcuts.rst b/docs/shortcuts.rst index 0f88bd63..085b9744 100644 --- a/docs/shortcuts.rst +++ b/docs/shortcuts.rst @@ -68,7 +68,7 @@ Keyboard +----------------------+--------------------------------------------------------------------------+ | W | Toggle Part Wrap Status: (W)rap using Convex hull/Normal | +----------------------+--------------------------------------------------------------------------+ -| TAB | Swith the Selected Nodes to Different Profile (Main / Side) | +| E | Swith the Selected Nodes to Different Profile (Main / Side) | +----------------------+--------------------------------------------------------------------------+ Mouse diff --git a/src/skeletongraphicswidget.cpp b/src/skeletongraphicswidget.cpp index 5293a2e4..b3ecbc68 100644 --- a/src/skeletongraphicswidget.cpp +++ b/src/skeletongraphicswidget.cpp @@ -1516,7 +1516,7 @@ bool SkeletonGraphicsWidget::keyPress(QKeyEvent *event) emit groupOperationAdded(); return true; } - } else if (event->key() == Qt::Key_Tab) { + } else if (event->key() == Qt::Key_E) { if (SkeletonDocumentEditMode::Select == m_document->editMode && hasSelection()) { switchProfileOnRangeSelection(); return true;