refactor: check spelling (#2200)

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2022-03-25 07:19:28 -04:00
committed by GitHub
parent 8197458a4b
commit b18c5e76c9
16 changed files with 32 additions and 32 deletions

View File

@@ -37,19 +37,19 @@ export function useArrowKeysNavigation(searchItems: any, options: any = {}) {
handleArrowKeysNavigation(event, selectedEntry, preventPropagation)
}
function bindArrowKeysListerners() {
function bindArrowKeysListeners() {
window.addEventListener("keydown", onKeyUp, { capture: preventPropagation })
}
function unbindArrowKeysListerners() {
function unbindArrowKeysListeners() {
window.removeEventListener("keydown", onKeyUp, {
capture: preventPropagation,
})
}
return {
bindArrowKeysListerners,
unbindArrowKeysListerners,
bindArrowKeysListeners,
unbindArrowKeysListeners,
selectedEntry,
}
}