0
Fixed

In Hebcal, when cursor focus is in an input field, like the year, arrow key should only change position with field, not change the date.

mrl 1 year ago updated by Michael J. Radwin 1 year ago 2

In Hebcal, if the cursor focus is in an input field, like the year, and I hit the arrow key to move the cursor within the field, it change the whole date instead.  I.e. forward or back a date.   This is not normal web interface behavior. Can you fix this?  Thanks!

Answer

Answer
Fixed

Thanks for using Hebcal, and thanks for the feedback! We disabled the ArrowLeft/ArrowRight navigation on the Hebrew Date Converter as we agree it doesn't work well on a web page that has interactive forms.

Answer
Fixed

Thanks for using Hebcal, and thanks for the feedback! We disabled the ArrowLeft/ArrowRight navigation on the Hebrew Date Converter as we agree it doesn't work well on a web page that has interactive forms.

Additionally, can you change your web page, so that Alt-Right Arrow and Alt-Left Arrow are ignored by your web page?   The browser uses those combinations to go backwards and forwards between browser pages.   But your web page captures those input to change the date.

I think in your javascript code, where you have "document.addEventListener('keydown', function(e)",  in there I think you can change

"e.key === 'ArrowLeft'" to be  

"e.key === 'ArrowLeft' && ! e.altKey" 

And the same with ArrowRight, that this should fix the issue.  Thanks. - Mark