fix(autocomplete): add keyboard navigation and fix scroll/blur in all CODMAT dropdowns
Extract shared setupAutocomplete() into shared.js so all three autocomplete instances (mappings modal, inline add, quick-map modal) get keyboard nav (ArrowDown/Up/Enter/Escape), scroll-safe blur handling, and capture-phase keydown to prevent browser interception. Remove old onmousedown inline handlers, use data-codmat/data-label attributes instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -700,6 +700,9 @@ tr.mapping-deleted td {
|
||||
.autocomplete-item:hover, .autocomplete-item.active {
|
||||
background-color: var(--surface-raised);
|
||||
}
|
||||
.autocomplete-dropdown.keyboard-active .autocomplete-item:hover:not(.active) {
|
||||
background: inherit;
|
||||
}
|
||||
.autocomplete-item .codmat {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
|
||||
Reference in New Issue
Block a user