From 53442e96afcf52c1e8b92e43ce2c14c808579d7e Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Sun, 17 Mar 2019 17:01:12 +0100 Subject: [PATCH] Add the ctrl+s binding to the save function() --- js/pianos4.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/pianos4.js b/js/pianos4.js index c8d822b..5413e5e 100644 --- a/js/pianos4.js +++ b/js/pianos4.js @@ -3669,6 +3669,14 @@ function Pianos4( params ) { self.save(); } ); + + self.registerHandler( [ + 'keydown', 'ctrl+s' + ], function( e ) + { + e.preventDefault(); + self.save(); + } ); } var setStatus = function( message ) -- GitLab