Liresol / anki-custom-shortcuts

Custom Keyboard Shortcuts for Anki 2.1
MIT License
60 stars 14 forks source link

fixes #185 #188

Open kvn1351 opened 1 year ago

kvn1351 commented 1 year ago

Hi, this PR fixes #185. It has been thoroughly tested, and the removal of this check doesn't cause any issues whatsoever!

It is my understanding that since the focusTrap was implemented, this check doesn't serve any purpose anymore. But the check does indeed break this add-on because it doesn't reflect the focusTrap's logic.

Once we click outside of a field, the focusTrap prevents the field from losing focus. But the check expects this behaviour, and is so never reset.