Home >Web Front-end >JS Tutorial >jQuery ctrl Enter shift Enter implementation code_jquery
The key code can be found through the event's which
However, when there is a key combination, you need to pay attention
such as the ctrl enter key. Although e.ctrlKey is used, the key code of the enter key is not always 13
In ff, it is determined that ctrl enter is e.ctrlKey && e.which ==13
In ie6, it is determined that ctrl enter is e.ctrlKey && e.which ==10
Example: