mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-24 19:25:27 +00:00
Prevented shift-tab from selecting a tag
This commit is contained in:
parent
a11d5245ec
commit
10418323ef
@ -485,7 +485,7 @@ module.exports = function (ngApp, events) {
|
|||||||
changeActiveTo(newActive, suggestionElems);
|
changeActiveTo(newActive, suggestionElems);
|
||||||
}
|
}
|
||||||
// Enter or tab key
|
// Enter or tab key
|
||||||
else if (event.keyCode === 13 || event.keyCode === 9) {
|
else if ((event.keyCode === 13 || event.keyCode === 9) && !event.shiftKey) {
|
||||||
let text = suggestionElems[active].textContent;
|
let text = suggestionElems[active].textContent;
|
||||||
currentInput[0].value = text;
|
currentInput[0].value = text;
|
||||||
currentInput.focus();
|
currentInput.focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user