Submit to Tab with Ctrl + Click / Ctrl + Enter / Middle click

Sets form's target to `_blank` when submitted while Control key is being pressed. Allow submit with middle mouse button.

< Feedback on Submit to Tab with Ctrl + Click / Ctrl + Enter / Middle click

Question/comment

§
Posted: 2018-05-17

Ctrl + Enter doesn't work on Chrome

  1. event.keyCode is 10 on Windows Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=79407
  2. Ctrl + Enter wouldn't submit the form. I think it could be fixed by calling form.submit() in the onpress handler.

Post reply

Sign in to post a reply.