Add configurable shortcuts for drawing tools

This commit is contained in:
Yuriy Puchkov
2020-09-08 19:04:40 +03:00
parent 2834084876
commit d061290fb1
40 changed files with 4730 additions and 1154 deletions

View File

@@ -148,9 +148,7 @@ QColor SidePanelWidget::grabPixmapColor(const QPoint &p) {
}
bool SidePanelWidget::handleKeyPress(QKeyEvent *e) {
if (e->key() == Qt::Key_Space) {
emit togglePanel();
} else if (e->key() == Qt::Key_Escape) {
if (e->key() == Qt::Key_Escape) {
releaseColorGrab();
updateColor(m_colorBackup);
} else if (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) {