1 Commits

Author SHA1 Message Date
dependabot[bot]
e7779bdc49 Bump postcss from 7.0.23 to 7.0.36
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.23 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.23...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-17 12:28:38 +00:00
2 changed files with 2147 additions and 22085 deletions

24227
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