Skip to content

Commit

Permalink
Address PR issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Sep 16, 2022
1 parent b1f791f commit ba505a6
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ export default defineComponent({
areCustomKeyBindingsEnabled() {
const activeElementTag = document.activeElement.tagName
if (
activeElementTag.toLowerCase() === 'textarea' ||
activeElementTag.toLowerCase() === 'input'
)
return true
if (['textarea', 'input', 'select'].includes(activeElementTag.toLowerCase())) return true
const closestSelectionEl = window.getSelection().focusNode as HTMLElement
if (!closestSelectionEl) return false
let customKeyBindings
Expand Down

0 comments on commit ba505a6

Please sign in to comment.