Add configurable shortcuts for drawing tools
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user