Commit 91601f5a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Make previous/next/add keyframe shortcuts work on compositions and mixes

parent f8351c3d
Pipeline #64874 canceled with stage
......@@ -490,6 +490,10 @@ void AssetPanel::slotAddRemoveKeyframe()
{
if (m_effectStackWidget->isVisible()) {
m_effectStackWidget->addRemoveKeyframe();
} else if (m_transitionWidget->isVisible()) {
m_transitionWidget->addRemoveKeyframe();
} else if (m_mixWidget->isVisible()) {
m_mixWidget->addRemoveKeyframe();
}
}
......@@ -497,6 +501,10 @@ void AssetPanel::slotNextKeyframe()
{
if (m_effectStackWidget->isVisible()) {
m_effectStackWidget->slotGoToKeyframe(true);
} else if (m_transitionWidget->isVisible()) {
m_transitionWidget->nextKeyframe();
} else if (m_mixWidget->isVisible()) {
m_mixWidget->nextKeyframe();
}
}
......@@ -504,5 +512,9 @@ void AssetPanel::slotPreviousKeyframe()
{
if (m_effectStackWidget->isVisible()) {
m_effectStackWidget->slotGoToKeyframe(false);
} else if (m_transitionWidget->isVisible()) {
m_transitionWidget->previousKeyframe();
} else if (m_mixWidget->isVisible()) {
m_mixWidget->previousKeyframe();
}
}
......@@ -30,7 +30,6 @@
#include "monitor/monitor.h"
#include "timecode.h"
#include "timecodedisplay.h"
#include "mainwindow.h"
#include "widgets/doublewidget.h"
#include "widgets/geometrywidget.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment