cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

How do I use the Enter key instead of clicking the "OK" button in JSL?

Make a dialog box with JSL, click "ok" to confirm, how can you also achieve confirmation by pressing the Enter key, without clicking "OK"?

2024-04-10_13-33-44.png

 

Thanks!

dt = Current Data Table();
ex = New Window( "",
	<<modal,
	Border Box( "", teb = Text Edit Box( "", <<Set Width( 500 ) ) ),
	Panel Box( "", H List Box( Button Box( "OK", ng = teb << get text ) ) )
);
3 REPLIES 3
jthi
Super User

Re: How do I use the Enter key instead of clicking the "OK" button in JSL?

lala
Level IX

Re: How do I use the Enter key instead of clicking the "OK" button in JSL?

  • I don't know how to fix it!

Thanks Experts!

jthi
Super User

Re: How do I use the Enter key instead of clicking the "OK" button in JSL?

You can set function to text edit box and it will trigger when the change is committed to text edit box. There is also Set focus on text edit box which can give some additional ideas
-Jarmo

Recommended Articles