]> git.0d.be Git - nanofun.git/commitdiff
restore keyboard key behaviour (toggle)
authorFrédéric Péters <fpeters@0d.be>
Mon, 25 Jan 2021 11:30:52 +0000 (12:30 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 25 Jan 2021 11:30:52 +0000 (12:30 +0100)
nanofun.js

index fff1ea07d8e09d3a00180c280ab53df9e4c33ac5..99c88e76bfa0dd8ad77f77931a9025eb7134fdde 100644 (file)
@@ -469,7 +469,7 @@ var nanofun = function() {
     $(document).keypress(function(ev) {
       var sample_idx = KEYBOARD_CODES.indexOf(ev.key);
       if (sample_idx != -1) {
-        self.startSample(sample_idx);
+        self.toggleSample(sample_idx);
       }
     });