mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-19 11:21:27 +02:00
Fix:Using arrow keys when editing podcast description #1826
This commit is contained in:
@@ -491,9 +491,9 @@ export default {
|
||||
}
|
||||
},
|
||||
checkActiveElementIsInput() {
|
||||
var activeElement = document.activeElement
|
||||
var inputs = ['input', 'select', 'button', 'textarea']
|
||||
return activeElement && inputs.indexOf(activeElement.tagName.toLowerCase()) !== -1
|
||||
const activeElement = document.activeElement
|
||||
const inputs = ['input', 'select', 'button', 'textarea', 'trix-editor']
|
||||
return activeElement && inputs.some((i) => i === activeElement.tagName.toLowerCase())
|
||||
},
|
||||
getHotkeyName(e) {
|
||||
var keyCode = e.keyCode || e.which
|
||||
|
Reference in New Issue
Block a user