I’m watching an input field for keystrokes.
I have a date field and I want to increment the date by 1 if the user hits the + key.
My logic is all worked out but I have one problem…
If the user types 1/1/2010 and hits plus, the vue model has been updated to read ‘1/1/2010+’
Is there a way to cancel the keystroke in code?
something like
if (keystroke == "+")
{
keystroke.cancel;
// other logic
}