Skip to content

Commit

Permalink
Update timelinedockwidget.cpp
Browse files Browse the repository at this point in the history
set shortcut 'k' for markers.

I would like to use 'm', but that's in use (transform).
  • Loading branch information
rodlie committed Jun 29, 2024
1 parent 4bdbb5c commit ed5e41b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/GUI/timelinedockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ void TimelineDockWidget::setLoop(const bool loop)
RenderHandler::sInstance->setLoop(loop);
}

// TODO: marker shortcut
bool TimelineDockWidget::processKeyPress(QKeyEvent *event)
{
const int key = event->key();
Expand All @@ -341,7 +340,9 @@ bool TimelineDockWidget::processKeyPress(QKeyEvent *event)
case PreviewState::playing: pausePreview(); break;
case PreviewState::paused: resumePreview(); break;
}
} else if(key == Qt::Key_I || key == Qt::Key_O) { // set frame in/out
} else if (key == Qt::Key_K) { // set marker
setMarker();
} else if (key == Qt::Key_I || key == Qt::Key_O) { // set frame in/out
switch(key) {
case Qt::Key_I: setIn(); break;
case Qt::Key_O: setOut(); break;
Expand Down

0 comments on commit ed5e41b

Please sign in to comment.