mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 07:12:34 +02:00
Steve Daulton's fix for Bug 636 - Return now toggles selection in label track.
This commit is contained in:
parent
fb94bd9203
commit
4ca5984081
@ -2658,10 +2658,10 @@ void LabelTrack::CreateCustomGlyphs()
|
||||
/// Returns true for keys we capture to start a label.
|
||||
bool LabelTrack::IsGoodLabelFirstKey(int keyCode)
|
||||
{
|
||||
// Allow everything before WXK_START except space and delete, the numpad keys
|
||||
// Allow everything before WXK_START except space, return and delete, the numpad keys
|
||||
// when numlock is on, and everything after WXK_COMMAND
|
||||
return (keyCode < WXK_START
|
||||
&& keyCode != WXK_SPACE && keyCode != WXK_DELETE) ||
|
||||
&& keyCode != WXK_SPACE && keyCode != WXK_DELETE && keyCode != WXK_RETURN) ||
|
||||
(keyCode >= WXK_NUMPAD0 && keyCode <= WXK_DIVIDE) ||
|
||||
(keyCode >= WXK_NUMPAD_EQUAL && keyCode <= WXK_NUMPAD_DIVIDE) ||
|
||||
(keyCode > WXK_COMMAND);
|
||||
|
Loading…
x
Reference in New Issue
Block a user