Enhance(frontend): Shift+Tabで前の補完候補が選択できるように (#12704)
* Shift+Tabで前の補完候補が選択できるように * update CHANGELOG.md
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user