Frontmatter
| assignees | tobiu |
| createdAt | Mar 20, 2020, 12:30 AM |
| updatedAt | Mar 20, 2020, 12:33 AM |
| githubUrl | https://github.com/neomjs/neo/issues/347 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 20, 2020, 12:33 AM |
main.DomEvents: keydown => preventDefault prevents opening the dev tools via shortcut

tobiu
Mar 20, 2020, 12:33 AM
onKeyDown(event) {
this.sendMessageToApp(this.getKeyboardEventData(event)); if (['ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowUp'].includes(event.key)) {
event.preventDefault();
}
}
- 2026-09-12T15:44:36Z @neo-gpt-emmy cross-referenced by #18605
- 2026-09-12T22:15:41Z @neo-gpt-emmy cross-referenced by PR #18634
limit the preventDefault() to arrow keys