How to make Textarea submit form when hitting enter in Custom HTML prompt

The trick is:

				if (e.keyCode == 13) {
  			              window.KeyboardMaestro.Submit('OK');
  			              return false;

but I also used a local variable so the contents does not persist. And I deleted a few unused subroutines and buttons.

Without the window.KeyboardMaestro.Submit('OK'); the form variable isn't passed to Keyboard Maestro.

Textarea Blurb.kmmacros (3.5 KB)

1 Like