Skip to main content
Oct 30, 2012 2:13 PM UTC
Question

Detecting keyboard events

Hello!


I use Epic 5.1 and Arbortext Editor 5.2. I use Java and ACL in order to create my plugin (most of it is written in Java).


I need to detect that the cursor is out of some range when the keys are pressed. So, I need to write a callback within my *.acl file or in Java. I've made a mouse click handler, but the cursor can be moved via keyboard too.


Please, give me some piece of advice.

    1 reply

    Oct 30, 2012 2:24 PM UTC
    Hi Ilya--



    You might be able to handle this using the ACL context_changed document
    callback. This callback detects changes in caret location, whether due
    to mouse clicks or keypresses. Look up doc_add_callback() in the
    Arbortext Help Center for details about this callback.



    --Clay





    Clay Helberg

    Senior Consultant

    TerraXML