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.

< Valutazione su Submit to Tab with Ctrl + Click / Ctrl + Enter / Middle click

Domanda/commento

§
Pubblicato: 17/05/2018

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.

Pubblica risposta

Accedi per pubblicare una risposta.