How do I trigger something when the cursor is within TEXTAREA and Ctrl+Enter is pressed? Using jQuery. Thanks
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
Maybe a little late to the game, but here is what I use. It will also force submit of the form that is the current target of the cursor.
You can use the
event.ctrlKey
flag to see if the Ctrl key is pressed, something like this:Check the above snippet here.