Skip to content

Commit

Permalink
Updared Keyboard help, changed alt -/+ to ctrl - for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Sep 27, 2024
1 parent 2ad930b commit 3390751
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Help/keyboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,24 +92,24 @@
<td colspan="2" class="text-center text-bg-light"><h5>Spectrogram</h5></td>
</tr>
<tr>
<td><b>Ctrl+ or + </b></td>
<td><b>Plus (+) </b></td>
<td>Zoom in on the spectrogram. When zooming, Chirpity automatically adjusts the short-time Fourier transform (STFT) window size to optimize
the spectral resolution
</td>
</tr>
<tr>
<td><b>Ctrl- or -</b></td>
<td><b>Minus (-)</b></td>
<td>Zoom out the spectrogram. When zooming, Chirpity automatically adjusts the STFT window size to optimize the
spectral resolution
</td>
</tr>
<tr>
<td><b>Alt + </b></td>
<td><b>Ctrl Plus (+) </b></td>
<td>Manually reduce the spectrogram window size. Adjusting the window size has the effect of sharpening / blurring the calls in the spectrogram.
</td>
</tr>
<tr>
<td><b>Alt -</b></td>
<td><b>Ctrl Minus (-)</b></td>
<td>Manually increase the spectrogram window size
</td>
</tr>
Expand Down
6 changes: 3 additions & 3 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2724,9 +2724,9 @@ function onChartData(args) {
}
}
},
'=': function (e) {e.metaKey || e.altKey ? reduceFFT() : zoomSpec('zoomIn')},
'+': function (e) {e.metaKey || e.altKey ? reduceFFT() : zoomSpec('zoomIn')},
'-': function (e) {e.metaKey || e.altKey ? increaseFFT() : zoomSpec('zoomOut')},
'=': function (e) {e.metaKey || e.ctrlKey ? reduceFFT() : zoomSpec('zoomIn')},
'+': function (e) {e.metaKey || e.ctrlKey ? reduceFFT() : zoomSpec('zoomIn')},
'-': function (e) {e.metaKey || e.ctrlKey ? increaseFFT() : zoomSpec('zoomOut')},
' ': function () { wavesurfer && wavesurfer.playPause() },
Tab: function (e) {
if (activeRow) {
Expand Down

0 comments on commit 3390751

Please sign in to comment.