1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 07:40:05 +02:00

Delete key, not - key, in the spectral selection bar maks frequency undefined.

This commit is contained in:
Paul Licameli 2015-07-29 11:55:48 -04:00
parent 7f7506dbcd
commit 360a33454e

View File

@ -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);
}