1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-11 15:16:27 +01:00

Fix for keyboard commands for time shifting clips

Commands didn't update history etc.

Fix: Commands now call TrackPanel::MakeParentPushState.
This commit is contained in:
David Bailes
2017-05-15 13:05:35 +01:00
parent 0caad3efe6
commit b91160795d
4 changed files with 44 additions and 11 deletions

View File

@@ -256,7 +256,7 @@ class AUDACITY_DLL_API TrackPanel final : public OverlayPanel {
// (ignoring any fisheye)
virtual double GetScreenEndTime() const;
virtual void OnClipMove(bool right);
virtual void OnClipMove(bool right, bool keyUp);
protected:
virtual MixerBoard* GetMixerBoard();
@@ -682,6 +682,8 @@ protected:
// us to undo the slide and then slide it by another amount
double mHSlideAmount;
double mHSlideAmountTotal; // used for sliding horizontally using the keyboard
bool mDidSlideVertically;
bool mRedrawAfterStop;