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.

< 腳本Submit to Tab with Ctrl + Click / Ctrl + Enter / Middle click的回應

提問/評論

§
發表於: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.

發表回覆

登入以回復