mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-10 14:23:27 -05:00
Add 'p' key as peak-hold toggle
This commit is contained in:
parent
13be18a2a3
commit
654aae2383
@ -1898,6 +1898,7 @@ int AppFrame::OnGlobalKeyDown(wxKeyEvent &event) {
|
|||||||
case 'L':
|
case 'L':
|
||||||
case 'U':
|
case 'U':
|
||||||
case 'S':
|
case 'S':
|
||||||
|
case 'P':
|
||||||
return 1;
|
return 1;
|
||||||
case '0':
|
case '0':
|
||||||
case '1':
|
case '1':
|
||||||
@ -2013,6 +2014,12 @@ int AppFrame::OnGlobalKeyUp(wxKeyEvent &event) {
|
|||||||
wxGetApp().setSoloMode(!wxGetApp().getSoloMode());
|
wxGetApp().setSoloMode(!wxGetApp().getSoloMode());
|
||||||
return 1;
|
return 1;
|
||||||
break;
|
break;
|
||||||
|
case 'P':
|
||||||
|
wxGetApp().getSpectrumProcessor()->setPeakHold(!wxGetApp().getSpectrumProcessor()->getPeakHold());
|
||||||
|
wxGetApp().getDemodSpectrumProcessor()->setPeakHold(wxGetApp().getSpectrumProcessor()->getPeakHold());
|
||||||
|
peakHoldButton->setSelection(wxGetApp().getSpectrumProcessor()->getPeakHold()?1:0);
|
||||||
|
peakHoldButton->clearModeChanged();
|
||||||
|
break;
|
||||||
case ']':
|
case ']':
|
||||||
case '[':
|
case '[':
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user