mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-06 17:13:49 +01:00
Update commands for moving clips using the keyboard
Second attempt at getting the commands to update history, so that they can be undone (previous attempt atb911607, which didn't call the undo manager for each keydown). Both a single keypress (keydown, then keyup), and holding down a key (multiple keydowns followed by a keyup) result in a single entry in Audacity's history dialog. Note that this code relies on a change to the undo mananger in commit63ae687.
This commit is contained in:
@@ -160,9 +160,12 @@ void OnSelExtendRight(const wxEvent * evt);
|
||||
void OnSelContractLeft(const wxEvent * evt);
|
||||
void OnSelContractRight(const wxEvent * evt);
|
||||
|
||||
void DoClipLeftOrRight( bool right );
|
||||
void OnClipLeft();
|
||||
void OnClipRight();
|
||||
private:
|
||||
int nKeyDown{};
|
||||
public:
|
||||
void DoClipLeftOrRight(bool right, bool keyUp );
|
||||
void OnClipLeft(const wxEvent* evt);
|
||||
void OnClipRight(const wxEvent* evt);
|
||||
|
||||
void OnCursorShortJumpLeft();
|
||||
void OnCursorShortJumpRight();
|
||||
|
||||
Reference in New Issue
Block a user