6 Commits

Author SHA1 Message Date
c136bbe2bb Ignore keys used for text highlight 2022-07-09 15:14:18 +03:00
be21eb3897 Chores 2022-07-09 14:16:55 +03:00
Pedro G. Galaviz
8ebd12db49 Merge pull request #15 from pggalaviz/dependabot/npm_and_yarn/handlebars-4.7.7
Bump handlebars from 4.5.3 to 4.7.7
2021-05-20 14:51:35 -05:00
Pedro G. Galaviz
4edb700cd8 Merge pull request #18 from pggalaviz/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.20 to 4.17.21
2021-05-11 19:32:55 -05:00
dependabot[bot]
3588880c50 Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 23:14:13 +00:00
dependabot[bot]
148d8a9355 Bump handlebars from 4.5.3 to 4.7.7
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.5.3 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.5.3...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-09 10:27:52 +00:00
2 changed files with 22042 additions and 2115 deletions

24138
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -67,8 +67,11 @@ 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.keyCode === 13) { // Enter key
if (e.key === 'Enter') {
caretPosition++
}
this.body = e.target.innerText