Pharmacy autocomplete: Tab key selects highlighted medicine
This commit is contained in:
parent
2941fadcac
commit
e3290625cc
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user