mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Bug 406 - Label creation/other non-dialogue editing and keyboard selection hang on long projects
This is part 1... Provides some relief to the selection "hang" This patch adds the ability for the keyboard based commands (like cursor left, extend selection right, etc.) to know when the key has been released. When the patch is applied the current state is saved only when the key is released and not every time it repeats. Here's an example of the difference it makes. This video show the selection "hang", but also watch the CPU usage. All I'm doing is pressing SHIFT+RIGHT ARROW. http://youtu.be/tdMntDwGSkM This one is the same thing bug with the patch applied. Notice that the selection "hang" no longer occurs and look at the CPU usage! http://youtu.be/EpXNsQ4Cky0
This commit is contained in:
12
src/Menus.h
12
src/Menus.h
@@ -136,12 +136,12 @@ void OnCursorDown();
|
||||
void OnShiftDown();
|
||||
void OnToggle();
|
||||
|
||||
void OnCursorLeft();
|
||||
void OnCursorRight();
|
||||
void OnSelExtendLeft();
|
||||
void OnSelExtendRight();
|
||||
void OnSelContractLeft();
|
||||
void OnSelContractRight();
|
||||
void OnCursorLeft(const wxEvent * evt);
|
||||
void OnCursorRight(const wxEvent * evt);
|
||||
void OnSelExtendLeft(const wxEvent * evt);
|
||||
void OnSelExtendRight(const wxEvent * evt);
|
||||
void OnSelContractLeft(const wxEvent * evt);
|
||||
void OnSelContractRight(const wxEvent * evt);
|
||||
|
||||
void OnCursorShortJumpLeft();
|
||||
void OnCursorShortJumpRight();
|
||||
|
||||
Reference in New Issue
Block a user