1 Commits

Author SHA1 Message Date
dependabot[bot]
c16af13797 Bump ssri from 6.0.1 to 6.0.2
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 20:07:10 +00:00
2 changed files with 2170 additions and 22097 deletions

24274
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