Autocomplete suggestion by Tab
This commit is contained in:
parent
b99c812565
commit
3cc03f5e58
@ -89,7 +89,7 @@ export default function attachListNavigation({list, type, onSelect, once, waitFo
|
||||
|
||||
let onKeyDown = (e: KeyboardEvent) => {
|
||||
if(!keyNames.has(e.key as any)) {
|
||||
if(e.key === 'Enter') {
|
||||
if(e.key === 'Enter' || (type !== 'xy' && e.key === 'Tab')) {
|
||||
cancelEvent(e);
|
||||
fireSelect(getCurrentTarget());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user