2 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
2 changed files with 22030 additions and 2092 deletions

24117
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