When adding a new KeyActionListener to a textField action map the new one removes textField’s default action for that specific key. I want to keep the default one along with the new one.
what do you suggest for solving this ?
Should i use textField.getActionMap().merge(); if yes can you provide an example please
You’ll need to download LemurDynamo-Beta3 which I just uploaded to Google Drive at the same link because I changed the resetText method to public access for you, previously it had protected access.
P.S. I didn’t go over to see what possible caveats there might be to allowing public access to that method, it shouldn’t be a problem for TrueTypeFonts, but I didn’t take a look to see what it did for BitmapFonts.
The real issue is that the TextEntryComponent is not watching the DocumentModel for changes. I’ll try to remember to add a bug to the Lemur issue tracker. (unless someone else does) Neck deep in release notifications at the moment.
FYI: Lemur master has the changes necessary for external changes to the DocumentModel to automatically update the text entry field. It will be included in the next release.
Yes, thanks for demos. I have not fetched this new test yet (because of busy week) but i am free tomorrow and will go through the new test demo for text entry.