Skip to main content
1-Visitor
October 30, 2012
Question

Detecting keyboard events

  • October 30, 2012
  • 1 reply
  • 620 views

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

    18-Opal
    October 30, 2012
    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