I have a simple html textarea input and I'd like to type in special character combinations like %>% and <- using keyboard shortcuts like Ctrl + Shift + M and Alt + -, respectively.
Code:
<!DOCTYPE html>
<html>
<body>
<textarea id="text1" name="text1" rows="4" cols="50">
</textarea>
</body>
</html>
What is the best way to write code for custom keyboard shortcuts using html, css, javascript, jquery, or any other framework?