From 8ad332c92cad40d9af3ddd199efd70f36b54936c Mon Sep 17 00:00:00 2001 From: Mobmaker <45888585+Mobmaker55@users.noreply.github.com> Date: Sun, 15 Sep 2024 17:44:55 -0400 Subject: [PATCH] keypress instead of keydown --- frontend/javascript/modules/majorProjectForm.js | 2 +- frontend/stylesheets/pages/_major-project.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/javascript/modules/majorProjectForm.js b/frontend/javascript/modules/majorProjectForm.js index e2dcfc2..b1cce6b 100644 --- a/frontend/javascript/modules/majorProjectForm.js +++ b/frontend/javascript/modules/majorProjectForm.js @@ -17,7 +17,7 @@ export default class MajorProjectForm { this.form.querySelector('input[id=skill-input]') .addEventListener('focusout', e => this.onWriteSkill(e)); this.form.querySelector('input[id=skill-input]') - .addEventListener('keyup', e => this.onKeyPress(e)); + .addEventListener('keypress', e => this.onKeyPress(e)); } onKeyPress(e) { diff --git a/frontend/stylesheets/pages/_major-project.scss b/frontend/stylesheets/pages/_major-project.scss index b2e02b3..c880076 100644 --- a/frontend/stylesheets/pages/_major-project.scss +++ b/frontend/stylesheets/pages/_major-project.scss @@ -30,7 +30,7 @@ float: left; background: #d979e3; padding: 4px 30px 4px 8px; - margin: 2px 5px; + margin: 2px 3px; color: #444; border-radius: 5px; }