cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lala
Level IX

How to trigger “OK” button with Enter key in JSL ?

I created a dialog window with a text input field and an OK button.
Currently, the next step can only be triggered by clicking the OK button with the mouse.

I would like to know:
Is it possible in JSL to allow pressing the Enter key to trigger the OK button (i.e., proceed to the next step) instead of clicking it manually?

If this is not supported, what is the recommended or standard workaround in JMP?
Thanks Experts!2025-12-27_12-04-47.png

2 REPLIES 2
jthi
Super User

Re: How to trigger “OK” button with Enter key in JSL ?

"Recommended" workaround depends on what you are trying to do. << Set Function + << Click() is one option but it will trigger when the input is committed not just on enter press.

-Jarmo
lala
Level IX

Re: How to trigger “OK” button with Enter key in JSL ?

ex=New Window("",<<modal,Border Box("",teb=Text Edit Box("",<<Set Width(300))),Panel Box("",H List Box(Button Box("OK",ng=teb<<get text))));

Recommended Articles