cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How to detect when the Enter Key Pressed with Arbortext Command Language

dgopois
12-Amethyst

How to detect when the Enter Key Pressed with Arbortext Command Language

Hello,

With Arbortext Command Language, on a customized window, how to detect when the Enter Key is pressed.

Kind regards

David

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

It depends what you mean by "detect". If you want to execute a specific action when Enter is pressed, you can use the map command to do so, e.g. 

map Enter { response("You pressed enter!"); }

Of course, if it's an edit window, doing this will bork your quick tags feature (the menu of valid tags that can be inserted at the caret location).

 

If you want to know when Enter is pressed, but still have it carry out its usual effect (like quick tags), you might need to use a Java or Javascript event listener instead.

View solution in original post

2 REPLIES 2

It depends what you mean by "detect". If you want to execute a specific action when Enter is pressed, you can use the map command to do so, e.g. 

map Enter { response("You pressed enter!"); }

Of course, if it's an edit window, doing this will bork your quick tags feature (the menu of valid tags that can be inserted at the caret location).

 

If you want to know when Enter is pressed, but still have it carry out its usual effect (like quick tags), you might need to use a Java or Javascript event listener instead.

Hello Clay,

Thank you for your help.

David

Top Tags