I Have some Function . For example
<script>
//Function1
alert('Function 1 run')
//Function2
alert('Function 2 run')
</script>
i need this functions run with .keypress jQuery
, for example press special key 1 + special key 2
like Ctrl + Character
<script>
('html').on('keypress' , ' Ctrl + A ' , function () {
alert('Function 1 run')
});
('html').on('keypress' , ' Ctrl + B ' , function () {
alert('Function 2 run')
});
</script>
so what would u guys suggest me ?