Closed mokun closed 5 years ago
You need a way to store and retrieve previously entered values. In the demo app I implemented the history store using a properties file. You may want to replace this solution with a more robust persistence mechanism.
I used Ctrl-Shift-Left and Ctrl-Shift-Right instead of just Left and Right, because I didn't want to disable the standard way to move the caret.
That's very awesome ! Using properties file to save the history will do the job well in my case.
Thanks to https://github.com/beryx/text-io/issues/17 that I now have the autocomplete setup for my program.
There are times that I would like to reenter the same input that I made in the past.
Is there an elegant way to program the Left and Right arrow keys to scroll backward and forward the input ?
I come up with this in
SwingHandler
but fall short of what to do next ?