jajoosam / zap

Learn more by just copying 📋
https://jajoosam.tech/zap
13 stars 5 forks source link

Add support for keys other than copy. #14

Open jajoosam opened 6 years ago

jajoosam commented 6 years ago

Should be easy to implement - could try with native chrome, or with mousetrap.js

adentranter commented 6 years ago

Sure you could do it nature JS. But using jquery you could simply use something like

$(document).on("keypress", function(e) { if ( e.ctrlKey && ( e.which === 46 ) ) { console.log( "You pressed CTRL + Del" ); } });

Annoying bit would be allowing people to change it. and/or turning on/off the ctrl+c