mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-23 15:50:05 +02:00
Delete key, not - key, in the spectral selection bar maks frequency undefined.
This commit is contained in:
parent
7f7506dbcd
commit
360a33454e
@ -1608,7 +1608,7 @@ void NumericTextCtrl::OnCaptureKey(wxCommandEvent &event)
|
||||
case WXK_TAB:
|
||||
case WXK_RETURN:
|
||||
case WXK_NUMPAD_ENTER:
|
||||
case '-':
|
||||
case WXK_DELETE:
|
||||
return;
|
||||
|
||||
default:
|
||||
@ -1631,7 +1631,7 @@ void NumericTextCtrl::OnKeyUp(wxKeyEvent &event)
|
||||
keyCode -= WXK_NUMPAD0 - '0';
|
||||
|
||||
if ((keyCode >= '0' && keyCode <= '9') ||
|
||||
(keyCode == '-') ||
|
||||
(keyCode == WXK_DELETE) ||
|
||||
(keyCode == WXK_BACK) ||
|
||||
(keyCode == WXK_UP) ||
|
||||
(keyCode == WXK_DOWN)) {
|
||||
@ -1675,7 +1675,7 @@ void NumericTextCtrl::OnKeyDown(wxKeyEvent &event)
|
||||
Updated();
|
||||
}
|
||||
|
||||
else if (!mReadOnly && keyCode == '-') {
|
||||
else if (!mReadOnly && keyCode == WXK_DELETE) {
|
||||
if (mAllowInvalidValue)
|
||||
SetValue(mInvalidValue);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user