Pharmacy autocomplete: Tab key selects highlighted medicine

This commit is contained in:
DevSoftTech Server 2026-05-25 14:14:51 +05:30
parent 2941fadcac
commit e3290625cc

View File

@ -737,6 +737,15 @@ $flag = static function ($v): string {
return;
}
if (evt.key === 'Tab' && !evt.shiftKey) {
if (!isOpen) {
return;
}
var tabIdx = activeSuggestionIndex >= 0 ? activeSuggestionIndex : 0;
chooseSuggestion(tabIdx);
return;
}
if (evt.key === 'Escape') {
if (!isOpen) {
return;