Hello,
I have been digging into the RText and RSyntaxTextArea code quite a bit for a project I am working on and I have a few questions. I'm planning on using RSyntaxTextArea in my Google Summer of Code project making a light weight Clojure http://www.clojure.org editor for creating music with Overtone http://overtone.github.com/ (a sound synthesis library). Since I am using the RSTA lib via Clojure interop, I am trying to figure out the best way to have different key binding modes. My goal is to have a default key map as well as vim and emacs style mappings.
I have looked through the code in RTextAreaUI and I think I understand how RTSA is using the swing UIManager to set the inputMap and actionMaps for the most part.Unfortunately though I can't find any access functions for getting or setting these input and action maps. I am also not familiar with these swing classes and I am worried about building some additional key mapping system on top of something already there. Not only could this create issues potentially but it would be nice to handle this in a proper format if there is one. The perfect scenario for me would be if I could define my own map of keys and actions (or groups of actions) and then just pass them to a setInputMap if there is one.
If anyone has any tips or suggestions I would really appreciate it.
Jon
