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 2024-04-10_13-33-44.png](https://community.jmp.com/t5/image/serverpage/image-id/63230i0E6846DBA5103847/image-size/large?v=v2&px=999)
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 ) ) )
);