<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to trigger “OK” button with Enter key in JSL ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921454#M108015</link>
    <description>&lt;P&gt;I created a dialog window with a text input field and an OK button.&lt;BR /&gt;Currently, the next step can only be triggered by clicking the OK button with the mouse.&lt;/P&gt;
&lt;P&gt;I would like to know:&lt;BR /&gt;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?&lt;/P&gt;
&lt;P&gt;If this is not supported, what is the recommended or standard workaround in JMP?&lt;BR /&gt;Thanks Experts!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-12-27_12-04-47.png" style="width: 416px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/89732i4405C5FFFF0DA936/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-12-27_12-04-47.png" alt="2025-12-27_12-04-47.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Dec 2025 04:11:25 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2025-12-27T04:11:25Z</dc:date>
    <item>
      <title>How to trigger “OK” button with Enter key in JSL ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921454#M108015</link>
      <description>&lt;P&gt;I created a dialog window with a text input field and an OK button.&lt;BR /&gt;Currently, the next step can only be triggered by clicking the OK button with the mouse.&lt;/P&gt;
&lt;P&gt;I would like to know:&lt;BR /&gt;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?&lt;/P&gt;
&lt;P&gt;If this is not supported, what is the recommended or standard workaround in JMP?&lt;BR /&gt;Thanks Experts!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-12-27_12-04-47.png" style="width: 416px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/89732i4405C5FFFF0DA936/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-12-27_12-04-47.png" alt="2025-12-27_12-04-47.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Dec 2025 04:11:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921454#M108015</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-12-27T04:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger “OK” button with Enter key in JSL ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921465#M108016</link>
      <description>&lt;P&gt;"Recommended" workaround depends on what you are trying to do. &amp;lt;&amp;lt; Set Function + &amp;lt;&amp;lt; Click() is one option but it will trigger when the input is committed not just on enter press.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Dec 2025 05:25:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921465#M108016</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-12-27T05:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger “OK” button with Enter key in JSL ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921503#M108021</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ex=New Window("",&amp;lt;&amp;lt;modal,Border Box("",teb=Text Edit Box("",&amp;lt;&amp;lt;Set Width(300))),Panel Box("",H List Box(Button Box("OK",ng=teb&amp;lt;&amp;lt;get text))));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Dec 2025 10:05:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921503#M108021</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-12-27T10:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger “OK” button with Enter key in JSL ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921524#M108025</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

ex = New Window("",
	&amp;lt;&amp;lt;modal,
	Border Box("", 
		teb = Text Edit Box("", &amp;lt;&amp;lt; Set Function(Function({this},
			btn &amp;lt;&amp;lt; Click(1);
		))
		, &amp;lt;&amp;lt;Set Width(300))
	),
	Panel Box("", 
		H List Box(
			btn = Button Box("OK", 
				ng = teb &amp;lt;&amp;lt; get text;
			)
		)
	)
);

Write();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Dec 2025 13:43:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-trigger-OK-button-with-Enter-key-in-JSL/m-p/921524#M108025</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-12-27T13:43:03Z</dc:date>
    </item>
  </channel>
</rss>

