Enhance(frontend): Shift+Tabで前の補完候補が選択できるように (#12704)

* Shift+Tabで前の補完候補が選択できるように

* update CHANGELOG.md
This commit is contained in:
1STEP621 2023-12-18 14:59:55 +09:00 committed by GitHub
parent 6b39ba918f
commit 38b82b8582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -359,12 +359,25 @@ function onKeydown(event: KeyboardEvent) {
}
break;
case 'Tab':
case 'ArrowDown':
cancel();
selectNext();
break;
case 'Tab':
if (event.shiftKey) {
if (select.value !== -1) {
cancel();
selectPrev();
} else {
props.close();
}
} else {
cancel();
selectNext();
}
break;
default:
event.stopPropagation();
props.textarea.focus();