1 Commits

Author SHA1 Message Date
dependabot[bot]
23aecab1b1 Bump dns-packet from 1.3.1 to 1.3.4
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 02:49:51 +00:00
2 changed files with 2144 additions and 22082 deletions

24233
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