How can we implement an easier system for entering user defined translations? If I have entered something in both the "original" and "translation" fields and I hit enter, I want the program to save the current translation pair and set the active component to be the "original" field input.
I've been learning a bit of web development, but I'm still unsure of how to manage that. I know I need to add a keypress listener to the "translation" field, but where can I do that?
How can we implement an easier system for entering user defined translations? If I have entered something in both the "original" and "translation" fields and I hit enter, I want the program to save the current translation pair and set the active component to be the "original" field input.
I've been learning a bit of web development, but I'm still unsure of how to manage that. I know I need to add a keypress listener to the "translation" field, but where can I do that?