1 Commits

Author SHA1 Message Date
dependabot[bot]
dadfab633c Bump elliptic from 6.5.3 to 6.5.4
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-01 19:09:59 +00:00
2 changed files with 2172 additions and 22091 deletions

24258
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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