1 Commits

Author SHA1 Message Date
dependabot[bot]
ee70c62fda Bump @hapi/hoek from 8.5.0 to 8.5.1
Bumps [@hapi/hoek](https://github.com/hapijs/hoek) from 8.5.0 to 8.5.1.
- [Release notes](https://github.com/hapijs/hoek/releases)
- [Commits](https://github.com/hapijs/hoek/compare/v8.5.0...v8.5.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 03:53:12 +00:00
2 changed files with 2191 additions and 22112 deletions

24310
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -67,11 +67,8 @@ export default {
this.body = '' this.body = ''
}, },
onKeyUp (e) { onKeyUp (e) {
const keysToIgnore = ['Shift', 'Meta', 'Control', 'Alt', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight']
if (keysToIgnore.includes(e.key)) return
let caretPosition = this.getCaretPos() let caretPosition = this.getCaretPos()
if (e.key === 'Enter') { if (e.keyCode === 13) { // Enter key
caretPosition++ caretPosition++
} }
this.body = e.target.innerText this.body = e.target.innerText