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

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

SOLVED
Highlighted
Garnet

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

 

 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

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

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
Highlighted

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

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

Highlighted

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

Hello Clay,

Thank you for your help.

David

Announcements