I Have a character limit in my text area and when it reaches a verge of 999 out of 1000 i dont want any accent characters to be entered.
Im not able to capture the final output of combination key, so when only 1 characters is left i need to detect Alt gr key being pressed and prevent its action further as not proceed with that combination.
keyDownEvent(e){
if ( (charactersLeft === maxLength -1) && e.keyCode === 18) {
e.preventDefault();
}
}
The above is not working still the key combination happens and accent key(alt gr + a = ā) is being printed. How to stop this event.